X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F002_basic_io.t;h=02936920d97480c2dc7f9ecbedba7f95443cc892;hb=0edcbfee41be71fffd06f32db5c86574e156c29a;hp=06a332223552422bb441c27ba8a8018cb0699011;hpb=b5f363acfcf077778dd4f3b59460a0cbb9e51400;p=gitmo%2FMooseX-Storage.git diff --git a/t/002_basic_io.t b/t/002_basic_io.t index 06a3322..0293692 100644 --- a/t/002_basic_io.t +++ b/t/002_basic_io.t @@ -4,15 +4,17 @@ use strict; use warnings; use Test::More; -use Test::TempDir; +use File::Temp qw(tempdir); 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'); }