From: Jonathan Rockway Date: Fri, 27 Oct 2006 21:25:38 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 5.7099_04~297 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=caaf37ad0160e5e4a3ec2a4ae9c4db1cdcd9a236;p=catagits%2FCatalyst-Runtime.git --- diff --git a/t/live_component_controller_action_chained.t b/t/live_component_controller_action_chained.t index 523821d..619a7ed 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} || 2; } -use Test::More tests => 106*$iters; +use Test::More tests => 109*$iters; use Catalyst::Test 'TestApp'; if ( $ENV{CAT_BENCHMARK} ) { @@ -729,6 +729,25 @@ sub run_tests { } # + # Test chained actions in the root controller + # + { + my @expected = qw[ + TestApp::Controller::Action::Chained->begin + TestApp::Controller::Action::Chained::Root->rootsub + TestApp::Controller::Action::Chained::Root->endpointsub + TestApp::Controller::Action::Chained->end + ]; + + my $expected = join( ", ", @expected ); + + ok( my $response = request('http://localhost/rootsub/1/endpointsub/2'), 'chained in root namespace' ); + is( $response->header('X-Catalyst-Executed'), + $expected, 'Executed actions' ); + is( $response->content, '1; 2', 'Content OK' ); + } + + # # Complex path with multiple empty pathparts # {