X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_basic_yaml.t;h=1cb51379b6d9316d621270621f02779b6eef48ce;hb=0b1731882300cdb05aa9fe09716da7a9a03cd00d;hp=9f60bf98760847258252443cdb0de4040c7b8b99;hpb=a99b06bc698f521b77656a1015fb4c572e39dfeb;p=gitmo%2FMooseX-Storage.git diff --git a/t/020_basic_yaml.t b/t/020_basic_yaml.t index 9f60bf9..1cb5137 100644 --- a/t/020_basic_yaml.t +++ b/t/020_basic_yaml.t @@ -5,13 +5,13 @@ use warnings; use Test::More; +use Test::Requires { + 'YAML::Any' => 0.01, # skip all if not installed + 'YAML' => 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"; - plan skip_all => "YAML 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'); plan tests => 10;