X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flive_component_controller_action_forward.t;h=5b23653033d4179a80b5f5f8b8c458f281681c89;hp=58d0ed4e60a9d947ea2635298046d6c3b2a5edb8;hb=86d993abfe04d54984bca9c1c5a91139ec1eec42;hpb=2e4a6ec399b96865713c7e08c8dcb10dbd7ec5da diff --git a/t/live_component_controller_action_forward.t b/t/live_component_controller_action_forward.t index 58d0ed4..5b23653 100644 --- a/t/live_component_controller_action_forward.t +++ b/t/live_component_controller_action_forward.t @@ -10,7 +10,7 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 2; } -use Test::More tests => 44 * $iters; +use Test::More tests => 47 * $iters; use Catalyst::Test 'TestApp'; if ( $ENV{CAT_BENCHMARK} ) { @@ -222,4 +222,17 @@ sub run_tests { 'Content is a serialized Catalyst::Request' ); } + + # test class forwards + { + ok( + my $response = request( + 'http://localhost/action/forward/class_forward_test_action'), + 'Request' + ); + ok( $response->is_success, 'Response Successful 2xx' ); + is( $response->header('X-Class-Forward-Test-Method'), 1, + 'Test Method' ); + } + }