Skip doublebug test on remote servers
Andy Grundman [Fri, 3 Aug 2007 16:22:33 +0000 (16:22 +0000)]
t/custom_live_component_controller_action_auto_doublebug.t

index cbd6770..f5960ef 100644 (file)
@@ -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' );
+        }
     }
 }