X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F100_gld_default_bug.t;h=0d6c410c289081fd160aead006b51cb66c4f03ef;hb=HEAD;hp=40ca14033fdce8b0b5d9c16ecdc80b4a62efead6;hpb=9fbb5be9dcf64475fb6f4d25807db1e952be2365;p=gitmo%2FMooseX-Getopt.git diff --git a/t/100_gld_default_bug.t b/t/100_gld_default_bug.t index 40ca140..0d6c410 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::Warnings; -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 },