X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F107_no_auto_help.t;h=f7d615a836156194fa8ecaee4670e97141aa342b;hb=d08ef824ff9b41efb8fbbc09fe6af178ef83080b;hp=5521bc278a552f65a82648024b47c628ae66c61f;hpb=418e36187f015bbe0ea9ba45c82296bb4975b3a5;p=gitmo%2FMooseX-Getopt.git diff --git a/t/107_no_auto_help.t b/t/107_no_auto_help.t index 5521bc2..f7d615a 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; { @@ -42,7 +41,7 @@ my $fail_on_exit = 1; 1; } -use Test::Warn; +use Test::Warn 0.21; use Test::Exception; END {