X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_basic_yaml_xs.t;h=8f19177d3aace141f283215e3884bc091a080193;hb=9566cef29cefd7e3571a8dc4c8fc75d88e395b2a;hp=8650a0e29f3567add296f068e9eea595aab02949;hpb=f16b57403e78d22ab73a98b8714d2dae8e1ca207;p=gitmo%2FMooseX-Storage.git diff --git a/t/020_basic_yaml_xs.t b/t/020_basic_yaml_xs.t index 8650a0e..8f19177 100644 --- a/t/020_basic_yaml_xs.t +++ b/t/020_basic_yaml_xs.t @@ -5,13 +5,13 @@ use warnings; use Test::More; +use Test::Requires { + 'YAML::Any' => 0.01, # skip all if not installed + 'YAML::XS' => 0.01, + 'Test::Without::Module' => 0.01, +}; + BEGIN { - eval "use YAML::Any"; - plan skip_all => "YAML::Any is required for this test" if $@; - eval "use YAML::XS"; - plan skip_all => "YAML::XS 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::XS'); plan tests => 10; @@ -19,7 +19,6 @@ BEGIN { } { - package Foo; use Moose; use MooseX::Storage;