Move plan skip_all for ENV{TEST_POD} to the top
Tomas Doran [Wed, 16 Jun 2010 01:33:30 +0000 (02:33 +0100)]
Changes
share/t/02pod.t.tt
share/t/03podcoverage.t.tt

diff --git a/Changes b/Changes
index 02f6532..3ac2c75 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 This file documents the revision history for Perl extension Catalyst-Devel.
 
+        - Fix generated Pod tests so that the first check is if the TEST_POD
+          environment variable is set. (RT#58433)
         - Fix link in the Pod for Catalyst::Restarter (RT#57362)
         - Fix the pod-coverage version required by the generated app tests.
         - Fix the restarter to only act upon file events (and ergo ignore
index 64fabdd..b87aaae 100644 (file)
@@ -3,8 +3,8 @@ use strict;
 use warnings;
 use Test::More;
 
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
 eval "use Test::Pod 1.14";
 plan skip_all => 'Test::Pod 1.14 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
 
 all_pod_files_ok();
index 7aca658..48668d8 100644 (file)
@@ -3,12 +3,12 @@ use strict;
 use warnings;
 use Test::More;
 
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
 eval "use Test::Pod::Coverage 1.04";
 plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
 
 eval "use Pod::Coverage 0.20";
 plan skip_all => 'Pod::Coverage 0.20 required' if $@;
 
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
 all_pod_coverage_ok();