X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_basic_yaml_syck.t;h=19d086c5817856f40a68ffbe78ab7a5978d93a9e;hb=cd4cef76da2af19af449e8c4c366e3111c6530ba;hp=d94fcd2857f91567fc9babf4d7f0538a43596518;hpb=5cc94cf58b4c2ad212d5856335016475687353b2;p=gitmo%2FMooseX-Storage.git diff --git a/t/020_basic_yaml_syck.t b/t/020_basic_yaml_syck.t index d94fcd2..19d086c 100644 --- a/t/020_basic_yaml_syck.t +++ b/t/020_basic_yaml_syck.t @@ -5,13 +5,13 @@ use warnings; use Test::More; +use Test::Requires { + 'YAML::Any' => 0.01, # skip all if not installed + 'YAML::Syck' => 0.01, + 'Test::Without::Module' => 0.01, +}; + BEGIN { - eval "use YAML::Any"; - plan skip_all => "YAML::Any is required for this test" if $@; - eval "require YAML::Syck"; - plan skip_all => "YAML::Syck is required for this test" if $@; - eval "require Test::Without::Module"; - plan skip_all => "Test::Without::Module is required for this test" if $@; Test::Without::Module->import(YAML::Any->order); Test::Without::Module->unimport('YAML::Syck'); plan tests => 10; @@ -19,7 +19,6 @@ BEGIN { } { - package Foo; use Moose; use MooseX::Storage;