more convert to using Test::Requires
[gitmo/MooseX-ClassAttribute.git] / xt / release / pod-spell.t
index 13b6444..a8dd89d 100644 (file)
@@ -3,9 +3,9 @@ use warnings;
 
 use Test::More;
 
-eval "use Test::Spelling";
-plan skip_all => "Test::Spelling required for testing POD coverage"
-    if $@;
+use Test::Requires {
+    'Test::Spelling' => '0.01', # skip all if not installed
+};
 
 my @stopwords;
 for (<DATA>) {