X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010_basic_json.t;h=7f405e8516db031869b416e38fceefa4e44bed6c;hb=0edcbfee41be71fffd06f32db5c86574e156c29a;hp=db190fc34bea90357e11811219b0e9b2e5b3e703;hpb=4fa64e865c99a6dcc3bec159a662300151d62fdf;p=gitmo%2FMooseX-Storage.git diff --git a/t/010_basic_json.t b/t/010_basic_json.t index db190fc..7f405e8 100644 --- a/t/010_basic_json.t +++ b/t/010_basic_json.t @@ -5,11 +5,12 @@ use warnings; use Test::More; -BEGIN { - eval "use Test::JSON"; - plan skip_all => "Test::JSON is required for this test" if $@; - eval "use JSON::Any"; - plan skip_all => "JSON::Any is required for this test" if $@; +use Test::Requires { + 'Test::JSON' => 0.01, # skip all if not installed + 'JSON::Any' => 0.01, +}; + +BEGIN { plan tests => 12; use_ok('MooseX::Storage'); }