use Test::Requires in tests
[gitmo/Moose.git] / t / 200_examples / 005_example_w_TestDeep.t
index 49030cc..676ae29 100644 (file)
@@ -15,10 +15,9 @@ but it is not completely horrid either.
 
 =cut
 
-BEGIN {
-    eval "use Test::Deep;";
-    plan skip_all => "Test::Deep is required for this test" if $@;
-}
+use Test::Requires {
+    'Test::Deep' => '0.01', # skip all if not installed
+};
 
 use Test::Exception;