Move plan skip_all for ENV{TEST_POD} to the top
[catagits/Catalyst-Devel.git] / share / t / 03podcoverage.t.tt
index 37ab26e..48668d8 100644 (file)
@@ -3,9 +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 $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+eval "use Pod::Coverage 0.20";
+plan skip_all => 'Pod::Coverage 0.20 required' if $@;
 
 all_pod_coverage_ok();
-1;