use strict;
use warnings;
-use Test::More tests => 2;
-use Test::Exception;
+use Test::More;
+use Test::Fatal;
-;
-
-lives_ok {
+is( exception {
package MooseX::Attribute::Test;
use Moose::Role;
-} 'creating custom attribute "metarole" is okay';
+}, undef, 'creating custom attribute "metarole" is okay' );
-lives_ok {
+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;