X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F004_nogetop.t;h=9592ed4862d2eff01dba30b1c50a2e16c1d153b4;hb=195fb408a61ad34e0e41887b4f9f8dc384dd5da5;hp=a4c4455fb18f37ae80c0802109a0f00b06a01842;hpb=da7b9880cfa75cdc3f3a4903e9ed7bfc86b534a3;p=gitmo%2FMooseX-Getopt.git diff --git a/t/004_nogetop.t b/t/004_nogetop.t index a4c4455..9592ed4 100644 --- a/t/004_nogetop.t +++ b/t/004_nogetop.t @@ -1,8 +1,9 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 10; use Test::Fatal 0.003; +use Test::NoWarnings 1.04 ':early'; BEGIN { use_ok('MooseX::Getopt'); @@ -15,7 +16,7 @@ BEGIN { with 'MooseX::Getopt'; has 'data' => ( - metaclass => 'Getopt', + traits => ['Getopt'], is => 'ro', isa => 'Str', default => 'file.dat', @@ -23,7 +24,7 @@ BEGIN { ); has 'cow' => ( - metaclass => 'Getopt', + traits => ['Getopt'], is => 'ro', isa => 'Str', default => 'moo', @@ -31,7 +32,7 @@ BEGIN { ); has 'horse' => ( - metaclass => 'Getopt', + traits => ['Getopt'], is => 'ro', isa => 'Str', default => 'bray', @@ -63,14 +64,14 @@ BEGIN { ); has 'private_stuff' => ( - metaclass => 'NoGetopt', + traits => ['NoGetopt'], is => 'ro', isa => 'Int', default => 713 ); has '_private_stuff_cmdline' => ( - metaclass => 'Getopt', + traits => ['Getopt'], is => 'ro', isa => 'Int', default => 832,