X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Funit_core_uri_for.t;fp=t%2Funit_core_uri_for.t;h=0c61435b7709edf9fbc64df2b20618c63509f25b;hp=612d0b06db3a1df95a43223cd36cdc229faf9c41;hb=fcea752e101dc4cb4af187c047fc8dec40a85032;hpb=c45c5d3787dfb147d4bfb4542283f52a3223fa87 diff --git a/t/unit_core_uri_for.t b/t/unit_core_uri_for.t index 612d0b0..0c61435 100644 --- a/t/unit_core_uri_for.t +++ b/t/unit_core_uri_for.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 13; +use Test::More tests => 14; use URI; use_ok('Catalyst'); @@ -81,6 +81,12 @@ is( is( Catalyst::uri_for( $context, '/bar/baz' )->as_string, 'http://127.0.0.1/bar/baz', 'URI with no base or match' ); + + # test "0" as the path + is( Catalyst::uri_for( $context, qw/0 foo/ )->as_string, + 'http://127.0.0.1/0/foo', '0 as path is ok' + ); + } # test with undef -- no warnings should be thrown