X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F007_nogetopt_trait.t;h=261c8fb750524b741ece44e47cdd0f1a19d1d49f;hb=a9e27700692fd9cd3c6b83deb3718d199c1646d0;hp=5ccef57799186df4ac985ea2c9888cee3ef93e93;hpb=adbe3e57810b57a425b78c327cc08ec3ab602a97;p=gitmo%2FMooseX-Getopt.git diff --git a/t/007_nogetopt_trait.t b/t/007_nogetopt_trait.t index 5ccef57..261c8fb 100644 --- a/t/007_nogetopt_trait.t +++ b/t/007_nogetopt_trait.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More tests => 9; -use Test::Exception; +use Test::Fatal; BEGIN { use_ok('MooseX::Getopt'); @@ -14,7 +14,7 @@ BEGIN { package App; use Moose; - with 'MooseX::Getopt'; + with 'MooseX::Getopt' => { getopt_conf => [] }; has 'data' => ( traits => ['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/; }