Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 200_examples / 003_example.t
index 2cf01c7..c3f5a68 100644 (file)
@@ -81,16 +81,16 @@ sub Y {
     package My::List1;
     use Moose;
 
-    ::ok ! ::exception {
+    ::is( ::exception {
         with 'List', 'List::Immutable';
-    }, '... successfully composed roles together';
+    }, undef, '... successfully composed roles together' );
 
     package My::List2;
     use Moose;
 
-    ::ok ! ::exception {
+    ::is( ::exception {
         with 'List::Immutable', 'List';
-    }, '... successfully composed roles together';
+    }, undef, '... successfully composed roles together' );
 
 }