Revert "convert all uses of Test::Exception to Test::Fatal."
[gitmo/Class-MOP.git] / t / 074_immutable_custom_trait.t
index cbc75f1..0139317 100644 (file)
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Fatal;
+use Test::Exception;
 
 use Class::MOP;
 
@@ -61,7 +61,7 @@ use Class::MOP;
 
     __PACKAGE__->meta->add_attribute('bar');
 
-    ::ok ! ::exception { __PACKAGE__->meta->make_immutable },
+    ::lives_ok { __PACKAGE__->meta->make_immutable }
         'can safely make a class immutable when it has a custom metaclass and immutable trait';
 }