more convert to using Test::Requires
[gitmo/MooseX-Singleton.git] / xt / author / pod.t
index 4ae1af3..5627f22 100644 (file)
@@ -5,7 +5,8 @@ use warnings;
 
 use Test::More;
 
-eval "use Test::Pod 1.14";
-plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
+use Test::Requires {
+    'Test::Pod' => '1.14', # skip all if not installed
+};
 
 all_pod_files_ok();