X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic-mx-getopt.t;fp=t%2Fbasic-mx-getopt.t;h=200912853e6022e768d4f304963eef24216520b2;hb=5b9208740abb7307813e18d172192f7683ff519d;hp=a1dda47569a64c3bbd6c0c37898ff7025b7280f9;hpb=9c750ab12855bb02c5f506f9d8598271b620194e;p=gitmo%2FMooseX-Runnable.git diff --git a/t/basic-mx-getopt.t b/t/basic-mx-getopt.t index a1dda47..2009128 100644 --- a/t/basic-mx-getopt.t +++ b/t/basic-mx-getopt.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::Exception; +use Test::Fatal; use Test::More tests => 9; use MooseX::Runnable::Invocation; @@ -39,9 +39,9 @@ foreach my $class (qw(Class Class2)) ok $invocation, 'class is instantiatable'; my $code; - lives_ok { + is exception { $code = $invocation->run('--foo', '42', 0); - } 'run lived'; + }, undef, 'run lived'; is $foo, '42', 'got foo from cmdline';