X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcustom_live_component_controller_action_auto_doublebug.t;fp=t%2Fcustom_live_component_controller_action_auto_doublebug.t;h=0000000000000000000000000000000000000000;hb=737a1e422e33f1889058373b0b1536b1b8c268db;hp=b1417a0ed4a88bb54e5c9c8c6c0d273194aa77d4;hpb=06400669da6cf01420f8bdc444d799ed8ff07ae2;p=catagits%2FCatalyst-Runtime.git diff --git a/t/custom_live_component_controller_action_auto_doublebug.t b/t/custom_live_component_controller_action_auto_doublebug.t deleted file mode 100644 index b1417a0..0000000 --- a/t/custom_live_component_controller_action_auto_doublebug.t +++ /dev/null @@ -1,48 +0,0 @@ -#!perl - -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; - -our $iters; - -BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; } - -use Test::More tests => 3*$iters; -use Catalyst::Test 'TestAppDoubleAutoBug'; - -if ( $ENV{CAT_BENCHMARK} ) { - require Benchmark; - Benchmark::timethis( $iters, \&run_tests ); -} -else { - for ( 1 .. $iters ) { - run_tests(); - } -} - -sub run_tests { - SKIP: - { - if ( $ENV{CATALYST_SERVER} ) { - skip 'Using remote server', 3; - } - - { - my @expected = qw[ - TestAppDoubleAutoBug::Controller::Root->auto - TestAppDoubleAutoBug::Controller::Root->default - TestAppDoubleAutoBug::Controller::Root->end - ]; - - my $expected = join( ", ", @expected ); - - ok( my $response = request('http://localhost/action/auto/one'), 'auto + local' ); - is( $response->header('X-Catalyst-Executed'), - $expected, 'Executed actions' ); - is( $response->content, 'default, auto=1', 'Content OK' ); - } - } -}