X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F107_no_auto_help.t;h=c958257dd9836126031e455ff2c664c97876a129;hb=refs%2Fheads%2Ftopic%2Fusage_attr_order;hp=5521bc278a552f65a82648024b47c628ae66c61f;hpb=df68cf06d86777f0b78f5073009488b2451a280d;p=gitmo%2FMooseX-Getopt.git diff --git a/t/107_no_auto_help.t b/t/107_no_auto_help.t index 5521bc2..c958257 100644 --- a/t/107_no_auto_help.t +++ b/t/107_no_auto_help.t @@ -13,8 +13,11 @@ 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); }; + if (eval { require MooseX::SimpleConfig and MooseX::SimpleConfig->VERSION(0.07) }) { + plan tests => 3; + } else { + plan skip_all => 'This test needs MooseX::SimpleConfig 0.07'; + } } my $fail_on_exit = 1; @@ -48,8 +51,6 @@ use Test::Exception; END { ok(!$fail_on_exit, 'getoptions() lives'); - done_testing; - # cancel the non-zero exit status from _getopt_full_usage() exit 0; }