X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_core_uri_for_action.t;h=a0297f40e59b7a0418f3484f662100c54ec17ca4;hb=babd1e285884092614a12c875437568f2ee6a53c;hp=e4f178423554a261ec2350fcad9371aea4a0759f;hpb=8b13f357b71297872a61f142ae62c2e60fda304d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_core_uri_for_action.t b/t/unit_core_uri_for_action.t index e4f1784..a0297f4 100644 --- a/t/unit_core_uri_for_action.t +++ b/t/unit_core_uri_for_action.t @@ -150,15 +150,15 @@ is($context->uri_for($chained_action, [ 1 ], 2, { q => 1 }), 'http://127.0.0.1/foo/chained/foo2/1/2/end2/3/4/5', 'uri_for returns uri with more args than specified on action' ); - is( $context->uri_for($action_needs_two, [1,undef], (3,4)), + is( $context->uri_for($action_needs_two, [1,''], (3,4)), 'http://127.0.0.1/foo/chained/foo2/1//end2/3/4', 'uri_for returns uri with empty capture on undef capture' ); - is( $context->uri_for($action_needs_two, [1,2], (undef,3)), + is( $context->uri_for($action_needs_two, [1,2], ('',3)), 'http://127.0.0.1/foo/chained/foo2/1/2/end2//3', 'uri_for returns uri with empty arg on undef argument' ); - is( $context->uri_for($action_needs_two, [1,2], (3,undef)), + is( $context->uri_for($action_needs_two, [1,2], (3,'')), 'http://127.0.0.1/foo/chained/foo2/1/2/end2/3/', 'uri_for returns uri with empty arg on undef last argument' );