X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive%2Fcomponent%2Fcontroller%2Faction%2Fmultipath.t;fp=t%2Flive%2Fcomponent%2Fcontroller%2Faction%2Fmultipath.t;h=0000000000000000000000000000000000000000;hb=66741f94ac93b7ba0989db3556d0e3fe36c1be87;hp=faa043bd904be890806175983e2f5fbb1920a82d;hpb=587b0f5882d4f5e128ae082758da37b065a3efde;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live/component/controller/action/multipath.t b/t/live/component/controller/action/multipath.t deleted file mode 100644 index faa043b..0000000 --- a/t/live/component/controller/action/multipath.t +++ /dev/null @@ -1,71 +0,0 @@ -#!perl - -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/../../../lib"; - -my $content = q/foo -bar -baz -/; - -our $iters; - -BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 2; } - -use Test::More tests => 16*$iters; -use Catalyst::Test 'TestApp'; - -if ( $ENV{CAT_BENCHMARK} ) { - require Benchmark; - Benchmark::timethis( $iters, \&run_tests ); -} -else { - for ( 1 .. $iters ) { - run_tests(); - } -} - -sub run_tests { - # Local - { - ok( - my $response = - request('http://localhost/action/multipath/multipath'), - 'Request' - ); - ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->content, $content, 'Content is a stream' ); - } - - # Global - { - ok( my $response = request('http://localhost/multipath'), 'Request' ); - ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->content, $content, 'Content is a stream' ); - } - - # Path('/multipath1') - { - ok( my $response = request('http://localhost/multipath1'), 'Request' ); - ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->content, $content, 'Content is a stream' ); - } - - # Path('multipath2') - { - ok( - my $response = - request('http://localhost/action/multipath/multipath2'), - 'Request' - ); - ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->content, $content, 'Content is a stream' ); - } -}