X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F100_gld_default_bug.t;fp=t%2F100_gld_default_bug.t;h=a7dc478a5a9b098fe3421f96accc9e50cf21deb0;hp=29ae2a423ac22b4c6bbd0d9fa84164a427cc2f5c;hb=6a378fbdc3c4c5ca5b9f4de5e2ad60da912e9f97;hpb=2398d6282976028ab5e9ff6eb9e678781ea261b7 diff --git a/t/100_gld_default_bug.t b/t/100_gld_default_bug.t index 29ae2a4..a7dc478 100644 --- a/t/100_gld_default_bug.t +++ b/t/100_gld_default_bug.t @@ -3,15 +3,14 @@ use strict; use warnings; -use Test::More; +use Test::More tests => 5; 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::Requires { + 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed +}; + +use_ok('MooseX::Getopt'); { package Engine::Foo;