convert all uses of Test::Exception to Test::Fatal.
[gitmo/MooseX-ClassAttribute.git] / t / 07-parameterized-role.t
index 9fb9588..df6780d 100644 (file)
@@ -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,10 @@ plan skip_all =>
 my $instance = Class->new();
 isa_ok( $instance, 'Class' );
 
-lives_and {
+ok ! exception {
     $instance->foo('bar');
     is( $instance->foo(), 'bar' );
-}
+},
 'used class attribute from parameterized role';
 
 done_testing();