more convert to using Test::Requires
[gitmo/MooseX-Singleton.git] / xt / author / pod-spell.t
index 904a236..fa10955 100644 (file)
@@ -2,8 +2,10 @@ use strict;
 use warnings;
 
 use Test::More;
-eval 'use Test::Spelling;';
-plan skip_all => "Test::Spelling required for testing POD spelling" if $@;
+
+use Test::Requires {
+    'Test::Spelling' => '0.01', # skip all if not installed
+};
 
 my @stopwords;
 for (<DATA>) {