X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_uri_for.t;h=e70ac55519de1cac26abe6f100076e4052def01b;hp=170e91b197225e61bc96b2b860241e9b70685e1f;hb=62b6471146edafe1192f6f8d162b9dc7c3b5a6e7;hpb=c8083f4e984e61ea783d324f9064282ae38a4607 diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index 170e91b..e70ac55 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More; use URI; use_ok('Catalyst'); @@ -143,3 +143,13 @@ TODO: { is_deeply($query_params_base, $query_params_test, "uri_for() doesn't mess up query parameter hash in the caller"); } + +# 5.80018 is only encoding the first of the / in the arg. See line 1271. +is( + Catalyst::uri_for( $context, 'controller/action', 'foo/bar/baz' )->as_string, + 'http://127.0.0.1/controller/action/foo%2Fbar%2Fbaz', + 'Escape both forward slashes in the arg as %2F' +); + +done_testing; +