more convert to using Test::Requires
[gitmo/MooseX-ClassAttribute.git] / xt / release / pod-coverage.t
index b6eda97..0802ee0 100644 (file)
@@ -3,9 +3,9 @@ use warnings;
 
 use Test::More;
 
-eval "use Test::Pod::Coverage 1.04";
-plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage"
-    if $@;
+use Test::Requires {
+    'Test::Pod::Coverage' => '1.04', # skip all if not installed
+};
 
 # This is a stripped down version of all_pod_coverage_ok which lets us
 # vary the trustme parameter per module.