X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F100_gld_default_bug.t;h=3237cd9040b634a8ff5f6dc9a098732c1b01ba36;hb=aabf4179f74c8607d8c9de5a1da07a5f2cb48b3b;hp=29ae2a423ac22b4c6bbd0d9fa84164a427cc2f5c;hpb=2557b52647dda5b9e090b324d950d4a55db74bae;p=gitmo%2FMooseX-Getopt.git diff --git a/t/100_gld_default_bug.t b/t/100_gld_default_bug.t index 29ae2a4..3237cd9 100644 --- a/t/100_gld_default_bug.t +++ b/t/100_gld_default_bug.t @@ -3,15 +3,13 @@ use strict; use warnings; -use Test::More; -use Test::Exception; - -BEGIN { - eval 'use Getopt::Long::Descriptive;'; - plan skip_all => "Getopt::Long::Descriptive required for this test" if $@; - plan tests => 5; - use_ok('MooseX::Getopt'); -} +use Test::More tests => 5; + +use Test::Requires { + 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed +}; + +use_ok('MooseX::Getopt'); { package Engine::Foo;