use Test::Requires in tests
[gitmo/Class-MOP.git] / t / 310_inline_structor.t
index 8e1b055..a1f3e64 100644 (file)
@@ -3,10 +3,9 @@ use warnings;
 
 use Test::More;
 
-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
+};
 
 use Class::MOP;