Updated uri_for to accept undef actions
[catagits/Catalyst-Runtime.git] / t / unit_core_uri_for.t
index 4b02021..c6726f6 100644 (file)
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 6;
+use Test::More tests => 7;
 use Test::MockObject;
 use URI;
 
@@ -26,6 +26,13 @@ is(
     'URI for relative path'
 );
 
+is(
+    Catalyst::uri_for( $context, '', 'arg1', 'arg2' )->as_string,
+    'http://127.0.0.1/foo/yada/arg1/arg2',
+    'URI for undef action with args'
+);
+
+
 is( Catalyst::uri_for( $context, '../quux' )->as_string,
     'http://127.0.0.1/foo/quux', 'URI for relative dot path' );