X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010_basic_json.t;h=5a93cc53a4be44ec8e47d51afcf75d62f4c6f55b;hb=8d8356bb0a96c1c4e909b56c812b16fc82c7bbd2;hp=8c475e3ce1d1e2dafae98ab6a05b5ba484ca4452;hpb=b477f392a4f593b3a02da32676b960522ace530f;p=gitmo%2FMooseX-Storage.git diff --git a/t/010_basic_json.t b/t/010_basic_json.t index 8c475e3..5a93cc5 100644 --- a/t/010_basic_json.t +++ b/t/010_basic_json.t @@ -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,