X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_component_controller_action_chained.t;h=9cb6bf4c13bfb6d7bf74878fdf16e1f6c0fad552;hb=e5d2cfdb03e4f8678893e7ceb550f2b4303f2d3a;hp=708fc675616486d1664cecd4adf6afb00db1f477;hpb=953c176dcad596a946c91e409b902473c7369746;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_component_controller_action_chained.t b/t/live_component_controller_action_chained.t index 708fc67..9cb6bf4 100644 --- a/t/live_component_controller_action_chained.t +++ b/t/live_component_controller_action_chained.t @@ -10,7 +10,7 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } -use Test::More tests => 124*$iters; +use Test::More tests => 127*$iters; use Catalyst::Test 'TestApp'; if ( $ENV{CAT_BENCHMARK} ) { @@ -863,4 +863,23 @@ sub run_tests { } + # + # PathPrefix + # + { + my @expected = qw[ + TestApp::Controller::Action::Chained->begin + TestApp::Controller::Action::Chained::PathPrefix->instance + TestApp::Controller::Action::Chained->end + ]; + + my $expected = join( ", ", @expected ); + + ok( my $response = request('http://localhost/action/chained/pathprefix/1'), + "PathPrefix (as an endpoint)" ); + is( $response->header('X-Catalyst-Executed'), + $expected, 'Executed actions' ); + is( $response->content, '; 1', 'Content OK' ); + } + }