X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F107_no_auto_help.t;h=c69e153389b47bbab5b8b66e98bd955863974c31;hp=5521bc278a552f65a82648024b47c628ae66c61f;hb=6a378fbdc3c4c5ca5b9f4de5e2ad60da912e9f97;hpb=2398d6282976028ab5e9ff6eb9e678781ea261b7 diff --git a/t/107_no_auto_help.t b/t/107_no_auto_help.t index 5521bc2..c69e153 100644 --- a/t/107_no_auto_help.t +++ b/t/107_no_auto_help.t @@ -12,10 +12,9 @@ use warnings; use Test::More; -BEGIN { -plan skip_all => 'This test needs MooseX::SimpleConfig 0.07' - unless eval { require MooseX::SimpleConfig && MooseX::SimpleConfig->VERSION(0.07); }; -} +use Test::Requires { + 'MooseX::SimpleConfig' => 0.07, # skip all if not installed +}; my $fail_on_exit = 1; {