0.01 releaase
[gitmo/MooseX-Storage.git] / t / 010_basic_json.t
index 8c475e3..5a93cc5 100644 (file)
@@ -3,10 +3,12 @@
 use strict;
 use warnings;
 
-use Test::More no_plan => 1;
-use Test::JSON;
+use Test::More;
 
 BEGIN {
+    eval "use Test::JSON";
+    plan skip_all => "Test::JSON is required for this test" if $@;        
+    plan tests => 12;
     use_ok('MooseX::Storage');
 }
 
@@ -39,7 +41,7 @@ BEGIN {
     
     my $json = $foo->freeze;
     
-    is_valid_json($json);
+    is_valid_json($json, '.. this is valid JSON');
     
     is_json(
         $json,