Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 070_native_traits / 100_array_from_role.t
index 7f76c1a..205b8ef 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Exception;
+use Test::Fatal;
 
 {
     package Foo;
@@ -36,11 +36,11 @@ use Test::Exception;
     package Stuff;
     use Moose;
 
-    ::lives_ok{ with 'Stuffed::Role';
-        } '... this should work correctly';
+    ::is( ::exception { with 'Stuffed::Role';
+        }, undef, '... this should work correctly' );
 
-    ::lives_ok{ with 'Bulkie::Role';
-        } '... this should work correctly';
+    ::is( ::exception { with 'Bulkie::Role';
+        }, undef, '... this should work correctly' );
 }
 
 done_testing;