fix for prototype undecl issue when type constraint utils loaded before consumers...
[gitmo/Moose.git] / t / 202_example_Moose_POOP.t
index 20ab59e..1c3c4bc 100644 (file)
@@ -6,8 +6,12 @@ use warnings;
 use Test::More;
 
 BEGIN {
-    eval "use DBM::Deep 0.983; use DateTime::Format::MySQL;";
-    plan skip_all => "DBM::Deep and DateTime::Format::MySQL required for this test" if $@;        
+    eval "use DBM::Deep 0.983;";
+    plan skip_all => "DBM::Deep is required for this test" if $@;        
+    plan skip_all => "DBM::Deep (>= 1.0) is required for this test" 
+        if DBM::Deep->VERSION >= 1.0;        
+    eval "use DateTime::Format::MySQL;";
+    plan skip_all => "DateTime::Format::MySQL is required for this test" if $@;            
     plan tests => 89;    
 }