Revert most of the conversion to Test::Fatal so we can redo it
[gitmo/Moose.git] / t / 010_basics / 022_buildargs_warning.t
index 07b2b61..7c99849 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::Fatal;
+use Test::Exception;
 use Test::More;
 use Test::Moose qw( with_immutable );
 
@@ -17,7 +17,7 @@ use Test::Requires {
 }
 
 with_immutable {
-    ok ! exception {
+    lives_and {
         stderr_like { Baz->new( x => 42, 'y' ) }
         qr{\QThe new() method for Baz expects a hash reference or a key/value list. You passed an odd number of arguments at t/010_basics/022_buildargs_warning.t line \E\d+},
             'warning when passing an odd number of args to new()';