Use Test::Requires in recipe tests
[gitmo/Moose.git] / lib / Moose / Cookbook / Basics / Recipe11.pod
index 82b7cf3..a339014 100644 (file)
@@ -3,14 +3,10 @@
 
 =begin testing-SETUP
 
-BEGIN {
-    eval 'use DateTime; use DateTime::Calendar::Mayan;';
-    if ($@) {
-        diag 'DateTime & DateTime::Calendar::Mayan required for this test';
-        ok(1);
-        exit 0;
-    }
-}
+use Test::Requires {
+    'DateTime'                  => '0',
+    'DateTime::Calendar::Mayan' => '0',
+};
 
 =end testing-SETUP