X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F002_basic_io.t;h=538ec14cdfb6322ff9694310b10f27a7ed0600aa;hb=0b1731882300cdb05aa9fe09716da7a9a03cd00d;hp=06a332223552422bb441c27ba8a8018cb0699011;hpb=a99b06bc698f521b77656a1015fb4c572e39dfeb;p=gitmo%2FMooseX-Storage.git diff --git a/t/002_basic_io.t b/t/002_basic_io.t index 06a3322..538ec14 100644 --- a/t/002_basic_io.t +++ b/t/002_basic_io.t @@ -10,9 +10,11 @@ use File::Spec::Functions; my $dir = tempdir; -BEGIN { - eval "use JSON::Any"; - plan skip_all => "JSON::Any is required for this test" if $@; +use Test::Requires { + 'JSON::Any' => 0.01, # skip all if not installed +}; + +BEGIN { plan tests => 10; use_ok('MooseX::Storage'); }