Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 100_bugs / 016_inheriting_from_roles.t
index c001dbb..8d84c7c 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use Test::More;
-use Test::Exception;
+use Test::Fatal;
 
 
 {
@@ -15,10 +15,9 @@ use Test::Exception;
     package My::Class;
     use Moose;
 
-    ::throws_ok {
+    ::like( ::exception {
         extends 'My::Role';
-    } qr/You cannot inherit from a Moose Role \(My\:\:Role\)/,
-    '... this croaks correctly';
+    }, qr/You cannot inherit from a Moose Role \(My\:\:Role\)/, '... this croaks correctly' );
 }
 
 done_testing;