more convert to using Test::Requires
[gitmo/MooseX-Singleton.git] / xt / author / tabs.t
index 1b9c5b9..b794cee 100644 (file)
@@ -5,8 +5,9 @@ use warnings;
 
 use Test::More;
 
-eval "use Test::NoTabs 0.8";
-plan skip_all => "Test::NoTabs 0.8 required for testing tabs" if $@;
+use Test::Requires {
+    'Test::NoTabs' => '0.8', # skip all if not installed
+};
 
 # Module::Install has tabs, so we can't check 'inc' or ideally '.'
 all_perl_files_ok('lib', 't', 'xt');