X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F009_gld_and_explicit_options.t;h=c095bdd0395515f04bf747ee88b8aab542b19482;hb=8582c92478a98d290912f5ed3f0171a7049ed05c;hp=dadceb24c04efab7f87a2f0ec9eb1d6d1338507b;hpb=6a378fbdc3c4c5ca5b9f4de5e2ad60da912e9f97;p=gitmo%2FMooseX-Getopt.git diff --git a/t/009_gld_and_explicit_options.t b/t/009_gld_and_explicit_options.t index dadceb2..c095bdd 100644 --- a/t/009_gld_and_explicit_options.t +++ b/t/009_gld_and_explicit_options.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More tests => 5; -use Test::Exception; +use Test::Fatal; use Test::Requires { 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed @@ -34,9 +34,9 @@ use_ok('MooseX::Getopt'); @ARGV = qw(--bar 10); my $foo; -lives_ok { +ok ! exception { $foo = Testing::Foo->new_with_options(baz => 100); -} '... this should work'; +}, '... this should work'; isa_ok($foo, 'Testing::Foo'); is($foo->bar, 10, '... got the right values');