X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_visit.t;h=b331e7c1e9b6656905d8f3cb6f881336072daf73;hb=055abad13cd2de549311b897e931d4c06d96d6fc;hp=f5a373d7641be84b89a4f48c586dcf8c7f343ccf;hpb=626053191a3ba8c5f4ac8bd831009e962842c469;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 f5a373d..b331e7c 100644 --- a/t/aggregate/live_component_controller_action_visit.t +++ b/t/aggregate/live_component_controller_action_visit.t @@ -42,11 +42,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 +76,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 +166,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 +206,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; @@ -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 an :Action of some sort.}, "Cannot visit app namespace" ); } @@ -266,17 +266,18 @@ 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 ); for my $i ( 1..3 ) { - ok( my $response = request("http://localhost/action/visit/visit_chained/$i"), + 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, "; $i", "Content OK for $i" ); + is( $response->content, "becomescapture; arg1, arg2", + "Content OK for $i" ); } }