X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=blobdiff_plain;f=t%2F009_gld_and_explicit_options.t;fp=t%2F009_gld_and_explicit_options.t;h=c095bdd0395515f04bf747ee88b8aab542b19482;hp=dadceb24c04efab7f87a2f0ec9eb1d6d1338507b;hb=aabf4179f74c8607d8c9de5a1da07a5f2cb48b3b;hpb=d08ef824ff9b41efb8fbbc09fe6af178ef83080b 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');