[Catalyst-dev] uri_for() with '0' value
Peter Karman
peter at peknet.com
Fri Feb 1 17:44:57 GMT 2008
Here's a failing test patch for uri_for against
http://dev.catalyst.perl.org/repos/Catalyst/branches/current/Catalyst-Runtime
Not sure of the cause. Just passing along the news. I will send a patch to fix it when/if
I can.
--- t/unit_core_uri_for.t (revision 7426)
+++ t/unit_core_uri_for.t (working copy)
@@ -1,7 +1,7 @@
use strict;
use warnings;
-use Test::More tests => 13;
+use Test::More tests => 14;
use URI;
use_ok('Catalyst');
@@ -33,7 +33,13 @@
'URI for undef action with args'
);
+is(
+ Catalyst::uri_for( $context, 0, 'arg1', 'arg2' )->as_string,
+ 'http://127.0.0.1/foo/yada/0/arg1/arg2',
+ 'URI for undef action with args 0'
+);
+
is( Catalyst::uri_for( $context, '../quux' )->as_string,
'http://127.0.0.1/foo/quux', 'URI for relative dot path' );
--
Peter Karman . peter at peknet.com . http://peknet.com/
More information about the Catalyst-dev
mailing list