X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=498e95c854060b42de0b821f41b7a5a30466ed40;hb=5b9208740abb7307813e18d172192f7683ff519d;hp=7a490ae3037d37528d461f59e13259227bd8c28b;hpb=9c750ab12855bb02c5f506f9d8598271b620194e;p=gitmo%2FMooseX-Runnable.git diff --git a/t/basic.t b/t/basic.t index 7a490ae..498e95c 100644 --- a/t/basic.t +++ b/t/basic.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::Exception; +use Test::Fatal; use Test::More tests => 8; use ok 'MooseX::Runnable'; @@ -25,9 +25,9 @@ my $invocation = MooseX::Runnable::Invocation->new( ok $invocation; my $code; -lives_ok { +is exception { $code = $invocation->run(1,2,3); -} 'run lived'; +}, undef, 'run lived'; is $code, 6, 'run worked'; @@ -49,8 +49,8 @@ $invocation = MooseX::Runnable::Invocation->new( ok $invocation; -lives_ok { +is exception { $code = $invocation->run(1,2,3); -} 'run lived'; +}, undef, 'run lived'; is $code, 0, 'run worked, and plugin changed the return code';