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;h=54312f29687bff380f2a90d3ca510060aefd672e;hp=40ca14033fdce8b0b5d9c16ecdc80b4a62efead6;hb=aec092482d5b90b8279e4a5f92165868a78ddf32;hpb=9fbb5be9dcf64475fb6f4d25807db1e952be2365 diff --git a/t/100_gld_default_bug.t b/t/100_gld_default_bug.t index 40ca140..54312f2 100644 --- a/t/100_gld_default_bug.t +++ b/t/100_gld_default_bug.t @@ -1,12 +1,10 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::More tests => 6; use Test::NoWarnings 1.04 ':early'; -use Test::Requires { - 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed -}; +use Getopt::Long::Descriptive; use_ok('MooseX::Getopt'); @@ -17,7 +15,7 @@ use_ok('MooseX::Getopt'); with 'MooseX::Getopt'; has 'nproc' => ( - metaclass => 'Getopt', + traits => ['Getopt'], is => 'ro', isa => 'Int', default => sub { 1 },