Redid conversion to Test::Fatal
[gitmo/Moose.git] / t / 050_metaclasses / 002_custom_attr_meta_as_role.t
index e516060..0b1af53 100644 (file)
@@ -6,17 +6,17 @@ use warnings;
 use Test::More;
 use Test::Fatal;
 
-ok ! exception {
+is( exception {
     package MooseX::Attribute::Test;
     use Moose::Role;
-}, 'creating custom attribute "metarole" is okay';
+}, undef, 'creating custom attribute "metarole" is okay' );
 
-ok ! exception {
+is( exception {
     package Moose::Meta::Attribute::Custom::Test;
     use Moose;
 
     extends 'Moose::Meta::Attribute';
     with 'MooseX::Attribute::Test';
-}, 'custom attribute metaclass extending role is okay';
+}, undef, 'custom attribute metaclass extending role is okay' );
 
 done_testing;