Revert "Whitespace trim tests", this was clearly retarded of
[gitmo/MooseX-Storage.git] / t / 060_basic_deferred.t
index 75c36a9..9be9b3a 100644 (file)
@@ -1,15 +1,18 @@
 #!/usr/bin/perl
+
 $|++;
 use strict;
 use warnings;
 
-use Test::More tests => 33;
+use Test::More;
 use Storable;
-use Test::JSON;
-use Test::YAML::Valid;
 
 BEGIN {
-    $ENV{JSON_ANY_ORDER} = qw(JSON);
+    eval "use Test::JSON; use Test::YAML::Valid;";
+    plan skip_all => "Test::JSON and Test::YAML::Valid are required for this test" if $@;  
+    eval "use JSON::Any";
+    plan skip_all => "JSON::Any is required for this test" if $@;          
+    plan tests => 33;    
     use_ok('MooseX::Storage');
 }