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=d0fa4aff0f751dedf9ef8b904735f274bea6f028;hp=f315984bfb43cb6d429f35bcba2ead01f62a28f5;hpb=857c821af199982eac42097d3e385edc913e217c;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 f315984..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} ) { @@ -987,8 +987,6 @@ sub run_tests { # doc/* # # request for doc/search should end up in doc/* -TODO: { - local $TODO = 'gbjk never got off his ass and fixed this'; { my @expected = qw[ TestApp::Controller::Action::Chained->begin @@ -1000,8 +998,25 @@ TODO: { ok( my $response = request('http://localhost/chained/doc/search'), "we prefer static path parts earlier in the chain" ); - is( $response->header('X-Catalyst-Executed'), - $expected, 'Executed actions' ); + TODO: { + local $TODO = 'gbjk never got off his ass and fixed this'; + is( $response->header('X-Catalyst-Executed'), + $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' ); } -}; } +