X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_component_controller_action_auto.t;h=ff904dcb2c5ee2279f058e24bce322d0f9b144f6;hb=141459fa3fc9852fd6f05138caddb410bbe2949c;hp=9c9e83b810fc6a8fad1afc084e6880fd0a0a48d0;hpb=a2e038a1e9cbc0f1ea32b7087e6b47efe3af082f;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_component_controller_action_auto.t b/t/live_component_controller_action_auto.t index 9c9e83b..ff904dc 100644 --- a/t/live_component_controller_action_auto.t +++ b/t/live_component_controller_action_auto.t @@ -116,20 +116,21 @@ sub run_tests { is( $response->content, 'abort end', 'Content OK' ); } - # test auto + failing auto + default + end + # test auto + default (bug on invocation of default twice) { my @expected = qw[ - TestApp::Controller::Action::Auto::Abort->begin + TestApp::Controller::Action::Auto::Default->begin TestApp::Controller::Action::Auto->auto - TestApp::Controller::Action::Auto::Abort->auto - TestApp::Controller::Action::Auto::Abort->end + TestApp::Controller::Action::Auto::Default->auto + TestApp::Controller::Action::Auto::Default->default + TestApp::Controller::Action::Auto::Default->end ]; my $expected = join( ", ", @expected ); - ok( my $response = request('http://localhost/action/auto/abort/anything'), 'auto + failing auto + default' ); + ok( my $response = request('http://localhost/action/auto/default/moose'), 'auto + default' ); is( $response->header('X-Catalyst-Executed'), $expected, 'Executed actions' ); - is( $response->content, 'abort end', 'Content OK' ); + is( $response->content, 'default (auto: 1)', 'Content OK' ); } }