X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F011_process_argv.t;fp=t%2F011_process_argv.t;h=d2c174081826bd2f2d0af29f05c1b9580b9f714d;hb=55c0aed71447be5194cabb929b2301a79cfa4906;hp=01c55bb8e9191f1303e646ba94c329d147f5dbe6;hpb=37743e14b86a6ab861ad79785c0cf11ab267a07b;p=gitmo%2FMooseX-Getopt.git diff --git a/t/011_process_argv.t b/t/011_process_argv.t index 01c55bb..d2c1740 100644 --- a/t/011_process_argv.t +++ b/t/011_process_argv.t @@ -4,7 +4,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal 0.003; if ( !eval { require Test::Deep } ) { @@ -38,9 +38,13 @@ else @ARGV = qw(--bar 10 file.dat); my $pa; -lives_ok { - $pa = Testing::Foo->process_argv(baz => 100); -} '... this should work'; +is( + exception { + $pa = Testing::Foo->process_argv(baz => 100); + }, + undef, + '... this should work' +); isa_ok($pa, 'MooseX::Getopt::ProcessedArgv'); Test::Deep::cmp_deeply($pa->argv_copy, [