X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F009_gld_and_explicit_options.t;h=dadceb24c04efab7f87a2f0ec9eb1d6d1338507b;hb=6a378fbdc3c4c5ca5b9f4de5e2ad60da912e9f97;hp=189a0c35264347917bbf0ca5b34fa5ce54c23b4c;hpb=b56c81234573df88729d5ce348bb460470abc4ff;p=gitmo%2FMooseX-Getopt.git diff --git a/t/009_gld_and_explicit_options.t b/t/009_gld_and_explicit_options.t index 189a0c3..dadceb2 100644 --- a/t/009_gld_and_explicit_options.t +++ b/t/009_gld_and_explicit_options.t @@ -6,25 +6,29 @@ use warnings; use Test::More tests => 5; use Test::Exception; -BEGIN { use_ok('MooseX::Getopt') } +use Test::Requires { + 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed +}; + +use_ok('MooseX::Getopt'); { package Testing::Foo; use Moose; - + with 'MooseX::Getopt'; - + has 'bar' => ( is => 'ro', - isa => 'Int', + isa => 'Int', required => 1, ); - + has 'baz' => ( is => 'ro', - isa => 'Int', - required => 1, - ); + isa => 'Int', + required => 1, + ); } @ARGV = qw(--bar 10);