use strict;
use warnings;
-use Test::More tests => 3;
-use Test::Exception;
-
+use Test::More;
{
package My::Custom::Meta::Attr;
use Moose;
-
+
extends 'Moose::Meta::Attribute';
}
{
package My::Fancy::Role;
use Moose::Role;
-
+
has 'bling_bling' => (
metaclass => 'My::Custom::Meta::Attr',
is => 'rw',
{
package My::Class;
use Moose;
-
+
with 'My::Fancy::Role';
}
isa_ok($c->meta->get_attribute('bling_bling'), 'My::Custom::Meta::Attr');
-
+done_testing;