Use Test::Requires in recipe tests
[gitmo/Moose.git] / lib / Moose / Cookbook / Extending / Recipe3.pod
index 012c185..1028a58 100644 (file)
@@ -3,14 +3,9 @@
 
 =begin testing-SETUP
 
-BEGIN {
-    eval 'use Test::Output;';
-    if ($@) {
-        diag 'Test::Output is required for this test';
-        ok(1);
-        exit 0;
-    }
-}
+use Test::Requires {
+    'Test::Output' => '0',
+};
 
 =end testing-SETUP