X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F004_nogetop.t;h=4cc272f24433eca0b79583c8912ffc673664fdfa;hb=topic%2Fdams_getopt_conf;hp=78da66dd0698203f960cc1308e3181947ec03cce;hpb=0f8232b66e0f72e35099ce203962a4efc23838cf;p=gitmo%2FMooseX-Getopt.git diff --git a/t/004_nogetop.t b/t/004_nogetop.t index 78da66d..4cc272f 100644 --- a/t/004_nogetop.t +++ b/t/004_nogetop.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More tests => 9; -use Test::Exception; +use Test::Fatal 0.003; BEGIN { use_ok('MooseX::Getopt'); @@ -14,7 +14,7 @@ BEGIN { package App; use Moose; - with 'MooseX::Getopt'; + with 'MooseX::Getopt' => { getopt_conf => [] }; has 'data' => ( metaclass => 'Getopt', @@ -98,5 +98,5 @@ BEGIN { { local @ARGV = (qw/--private_stuff 317/); - throws_ok { App->new_with_options } qr/Unknown option: private_stuff/; + like exception { App->new_with_options }, qr/Unknown option: private_stuff/; }