X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_chained.t;h=615289c1198893ab04ca54de7cbe2a58e92c7ec2;hb=5299fff8fe52a4f4c10698b258984e41a2f6964f;hp=74db1f2f327e3f158999da4b10251cac25fe96cd;hpb=fc38b0560394940f71dd8620d4006254eb067992;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_component_controller_action_chained.t b/t/aggregate/live_component_controller_action_chained.t index 74db1f2..615289c 100644 --- a/t/aggregate/live_component_controller_action_chained.t +++ b/t/aggregate/live_component_controller_action_chained.t @@ -10,7 +10,7 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } -use Test::More tests => 143*$iters; +use Test::More tests => 148*$iters; use Catalyst::Test 'TestApp'; if ( $ENV{CAT_BENCHMARK} ) { @@ -1004,4 +1004,19 @@ sub run_tests { $expected, 'Executed actions' ); } } + + { + ok( my $content = + get('http://localhost/chained/capture%2Farg%3B/return_arg/foo%2Fbar%3B'), + 'request with URI-encoded arg' ); + like( $content, qr{foo/bar;\z}, 'args decoded' ); + like( $content, qr{capture/arg;}, 'captureargs decoded' ); + } + { + ok( my $content = + get('http://localhost/chained/return_arg_decoded/foo%2Fbar%3B'), + 'request with URI-encoded arg' ); + like( $content, qr{foo/bar;\z}, 'args decoded' ); + } } +