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_forward.t;h=300039812ad8f0ce994c9466f279fe5591739320;hp=750c067d1c615a1c6aa5ecc4b8bb8c6d4ff7ced2;hb=e31b525c69917c8cc685ada77222d8d31a8263df;hpb=6d4c336866c2ec8d50aecfd00b038ada55f7eea6 diff --git a/t/aggregate/live_component_controller_action_forward.t b/t/aggregate/live_component_controller_action_forward.t index 750c067..3000398 100644 --- a/t/aggregate/live_component_controller_action_forward.t +++ b/t/aggregate/live_component_controller_action_forward.t @@ -10,7 +10,7 @@ our $iters; BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } -use Test::More tests => 50 * $iters; +use Test::More tests => 53 * $iters; use Catalyst::Test 'TestApp'; if ( $ENV{CAT_BENCHMARK} ) { @@ -245,4 +245,15 @@ sub run_tests { is( $response->content, '/action/forward/foo/bar', 'forward_to_uri_check correct namespace'); } + + # test forwarding to Catalyst::Action objects + { + ok( my $response = request( + 'http://localhost/action/forward/to_action_object'), + 'forward/to_action_object request'); + + ok( $response->is_success, 'forward/to_action_object successful'); + is( $response->content, 'mtfnpy', + 'forward/to_action_object forwards correctly'); + } }