Standardize use of Test::Exception before converting to Test::Fatal
[gitmo/Moose.git] / t / 300_immutable / 012_default_values.t
index 2114f4a..ad4e611 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Fatal;
+use Test::Exception;
 
 {
 
@@ -17,7 +17,7 @@ use Test::Fatal;
     has 'buz' => ( is => 'rw', default => q{"'\\} );
     has 'faz' => ( is => 'rw', default => qq{\0} );
 
-    ::ok ! ::exception {  __PACKAGE__->meta->make_immutable },
+    ::lives_ok {  __PACKAGE__->meta->make_immutable }
         'no errors making a package immutable when it has default values that could break quoting';
 }
 
@@ -47,7 +47,7 @@ is( $foo->faz, qq{\0},
     has 'buz' => ( is => 'rw', default => q{"'\\}, lazy => 1 );
     has 'faz' => ( is => 'rw', default => qq{\0}, lazy => 1 );
 
-    ::ok ! ::exception {  __PACKAGE__->meta->make_immutable },
+    ::lives_ok {  __PACKAGE__->meta->make_immutable }
         'no errors making a package immutable when it has lazy default values that could break quoting';
 }