use Test::Requires in tests
[gitmo/Moose.git] / t / 050_metaclasses / 012_moose_exporter.t
index d693b83..e37669d 100644 (file)
@@ -5,11 +5,10 @@ use warnings;
 
 use Test::More;
 use Test::Exception;
-BEGIN {
-    eval "use Test::Output;";
-    plan skip_all => "Test::Output is required for this test" if $@;
-}
 
+use Test::Requires {
+    'Test::Output' => '0.01', # skip all if not installed
+};
 
 {
     package HasOwnImmutable;