X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F004_nogetop.t;fp=t%2F004_nogetop.t;h=974c6c851530ff5249c62204887783f9c81d61e4;hp=c5c222c92d6f17104aadc43ea775e2a3b424b014;hb=aabf4179f74c8607d8c9de5a1da07a5f2cb48b3b;hpb=d08ef824ff9b41efb8fbbc09fe6af178ef83080b diff --git a/t/004_nogetop.t b/t/004_nogetop.t index c5c222c..974c6c8 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 0.21; +use Test::Fatal; BEGIN { use_ok('MooseX::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/; }