X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_visit.t;h=522137204b40f0486aeb80b162f97e5b285fad58;hb=480d94b5f34577816d44fe05389ca5a085179363;hp=468496b17829c99682f25ccdcfcf82a3e3cf406b;hpb=382d317c39473fe7792a08d071f00883f50ed73b;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 468496b..5221372 100644 --- a/t/aggregate/live_component_controller_action_visit.t +++ b/t/aggregate/live_component_controller_action_visit.t @@ -1,5 +1,3 @@ -#!perl - use strict; use warnings; @@ -42,11 +40,11 @@ sub run_tests { TestApp::Controller::Action::Visit->four TestApp::Controller::Action::Visit->five TestApp::View::Dump::Request->process - TestApp->end - TestApp->end - TestApp->end - TestApp->end - TestApp->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end ]; @expected = map { /Action/ ? (_begin($_), $_) : ($_) } @expected; @@ -76,8 +74,8 @@ sub run_tests { my @expected = qw[ TestApp::Controller::Action::Visit->visit_die TestApp::Controller::Action::Visit->args - TestApp->end - TestApp->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end ]; @expected = map { /Action/ ? (_begin($_), $_) : ($_) } @expected; @@ -166,12 +164,12 @@ sub run_tests { TestApp::Controller::Action::Visit->four TestApp::Controller::Action::Visit->five TestApp::View::Dump::Request->process - TestApp->end - TestApp->end - TestApp->end - TestApp->end - TestApp->end - TestApp->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end ]; @expected = map { /Action/ ? (_begin($_), $_) : ($_) } @expected; @@ -206,12 +204,12 @@ sub run_tests { TestApp::Controller::Action::Visit->four TestApp::Controller::Action::Visit->five TestApp::View::Dump::Request->process - TestApp->end - TestApp->end - TestApp->end - TestApp->end - TestApp->end - TestApp->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end + TestApp::Controller::Root->end ]; @expected = map { /Action/ ? (_begin($_), $_) : ($_) } @expected; @@ -266,7 +264,7 @@ sub run_tests { TestApp::Controller::Action::Chained->foo TestApp::Controller::Action::Chained::Foo->spoon TestApp::Controller::Action::Chained->end - TestApp->end + TestApp::Controller::Root->end ]; my $expected = join( ", ", @expected ); @@ -276,7 +274,7 @@ sub run_tests { "visit to chained + subcontroller endpoint for $i" ); is( $response->header('X-Catalyst-Executed'), $expected, "Executed actions for $i" ); - is( $response->content, "arg1, arg2; becomescapture", + is( $response->content, "becomescapture; arg1, arg2", "Content OK for $i" ); } }