X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_visit.t;h=febf9359711fb3530ad8ce2e77dea58de9afb858;hb=b456f8f32f13fc30b248264b05eda4aae66bf8c1;hp=96fe76220b6aa04438b10dd988848b1916afb5c4;hpb=ae0e35ee6dd51e78c0ffc2457699beadc7eefab8;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_component_controller_action_visit.t b/t/aggregate/live_component_controller_action_visit.t index 96fe762..febf935 100644 --- a/t/aggregate/live_component_controller_action_visit.t +++ b/t/aggregate/live_component_controller_action_visit.t @@ -10,7 +10,7 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } -use Test::More tests => 54 * $iters; +use Test::More tests => 60 * $iters; use Catalyst::Test 'TestApp'; if ( $ENV{CAT_BENCHMARK} ) { @@ -253,7 +253,7 @@ sub run_tests { ); ok( !$response->is_success, 'Response Fails' ); is( $response->content, - q[FATAL ERROR: Couldn't visit("TestApp"): Action has no namespace: cannot visit() to a plain method or component, must be a :Action or some sort.], + q{FATAL ERROR: Couldn't visit("TestApp"): Action has no namespace: cannot visit() to a plain method or component, must be a :Action or some sort.}, "Cannot visit app namespace" ); } @@ -271,10 +271,14 @@ sub run_tests { my $expected = join( ", ", @expected ); - ok( my $response = request('http://localhost/action/visit/visit_chained'), 'visit to chained + subcontroller endpoint' ); - is( $response->header('X-Catalyst-Executed'), - $expected, 'Executed actions' ); - is( $response->content, '; 1', 'Content OK' ); + for my $i ( 1..3 ) { + ok( my $response = request("http://localhost/action/visit/visit_chained/$i/becomescapture/arg1/arg2"), + "visit to chained + subcontroller endpoint for $i" ); + is( $response->header('X-Catalyst-Executed'), + $expected, "Executed actions for $i" ); + is( $response->content, "arg1, arg2; becomescapture", + "Content OK for $i" ); + } } }