X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcustom_live_component_controller_action_auto_doublebug.t;h=f5960ef2d9cc0194df54c1d39b0a662e16f3089a;hb=92f9d3ad4cba9d517c9819c136b4115e917dc46b;hp=cbd6770f8d0855bf07f6b5eb738c02ed365c01f7;hpb=6b25e5554ead493893b5bf164bfde1f58f0730e5;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 index cbd6770..f5960ef 100644 --- a/t/custom_live_component_controller_action_auto_doublebug.t +++ b/t/custom_live_component_controller_action_auto_doublebug.t @@ -24,18 +24,25 @@ else { } sub run_tests { + SKIP: { - my @expected = qw[ - TestAppDoubleAutoBug->auto - TestAppDoubleAutoBug->default - TestAppDoubleAutoBug->end - ]; + if ( $ENV{CATALYST_SERVER} ) { + skip 'Using remote server', 3; + } + + { + my @expected = qw[ + TestAppDoubleAutoBug->auto + TestAppDoubleAutoBug->default + TestAppDoubleAutoBug->end + ]; - my $expected = join( ", ", @expected ); + 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' ); + 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' ); + } } }