X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F009_gld_and_explicit_options.t;h=dadceb24c04efab7f87a2f0ec9eb1d6d1338507b;hp=aa2761cb0d62dd0e2d665cc1db0cf9b8b54c77d6;hb=6a378fbdc3c4c5ca5b9f4de5e2ad60da912e9f97;hpb=2398d6282976028ab5e9ff6eb9e678781ea261b7 diff --git a/t/009_gld_and_explicit_options.t b/t/009_gld_and_explicit_options.t index aa2761c..dadceb2 100644 --- a/t/009_gld_and_explicit_options.t +++ b/t/009_gld_and_explicit_options.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 Testing::Foo;