From: Dave Rolsky Date: Fri, 29 Oct 2010 15:24:21 +0000 (-0500) Subject: Switch to Test::Fatal X-Git-Tag: v0.21~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dae2900e82dc94b54321a72c9e974b38231ab2dc;p=gitmo%2FMooseX-ClassAttribute.git Switch to Test::Fatal --- diff --git a/t/07-parameterized-role.t b/t/07-parameterized-role.t index 9fb9588..ba28077 100644 --- a/t/07-parameterized-role.t +++ b/t/07-parameterized-role.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; use Test::Requires { 'MooseX::Role::Parameterized' => '0', @@ -37,10 +37,13 @@ plan skip_all => my $instance = Class->new(); isa_ok( $instance, 'Class' ); -lives_and { - $instance->foo('bar'); - is( $instance->foo(), 'bar' ); -} -'used class attribute from parameterized role'; +is( + exception { + $instance->foo('bar'); + is( $instance->foo(), 'bar' ); + }, + undef, + 'used class attribute from parameterized role' +); done_testing();