X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Flive_component_controller_action_action.t;h=eebfe48ba5d4b1c850b20a9706bbdc438ae09c13;hp=bc2038ebc8039886276b0f05b532757bcd2e0369;hb=bf7c9c87ac809f8370ee21db7effef130ea6e058;hpb=a7d2a53019cca4a6ebd29ccfc31139697f0dfdb8 diff --git a/t/aggregate/live_component_controller_action_action.t b/t/aggregate/live_component_controller_action_action.t index bc2038e..eebfe48 100644 --- a/t/aggregate/live_component_controller_action_action.t +++ b/t/aggregate/live_component_controller_action_action.t @@ -193,6 +193,25 @@ sub run_tests { is_deeply $action->attributes->{extra_attribute}, [13]; is_deeply $action->attributes->{another_extra_attribute}, ['foo']; } + { + ok( my $response = request('http://localhost/action_action_nine'), + 'Request' ); + ok( $response->is_success, 'Response Successful 2xx' ); + is( $response->content_type, 'text/plain', 'Response Content-Type' ); + is( $response->header('X-Catalyst-Action'), + 'action_action_nine', 'Test Action' ); + is( + $response->header('X-Test-Class'), + 'TestApp::Controller::Action::Action', + 'Test Class' + ); + is( $response->header('X-TestExtraArgsAction'), '42,13', 'Extra args get passed to action constructor' ); + like( + $response->content, + qr/^bless\( .* 'Catalyst::Request' \)$/s, + 'Content is a serialized Catalyst::Request' + ); + } } done_testing;