Revert "convert all uses of Test::Exception to Test::Fatal."
[gitmo/MooseX-ClassAttribute.git] / t / 07-parameterized-role.t
index df6780d..9fb9588 100644 (file)
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Fatal;
+use Test::Exception;
 
 use Test::Requires {
     'MooseX::Role::Parameterized' => '0',
@@ -37,10 +37,10 @@ plan skip_all =>
 my $instance = Class->new();
 isa_ok( $instance, 'Class' );
 
-ok ! exception {
+lives_and {
     $instance->foo('bar');
     is( $instance->foo(), 'bar' );
-},
+}
 'used class attribute from parameterized role';
 
 done_testing();