#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 3;
+use Test::More tests => 4;
use Moose ();
my $role = Moose::Meta::Role->create(
- 'package' => 'MyItem::Role::Equipment',
+ 'MyItem::Role::Equipment',
attributes => {
is_worn => {
is => 'rw',
roles => ['MyItem::Role::Equipment'],
);
-my $visored = $class->construct_instance(is_worn => 0);
+my $visored = $class->new_object(is_worn => 0);
ok(!$visored->is_worn, "attribute, accessor was consumed");
$visored->is_worn(1);
ok($visored->is_worn, "accessor was consumed");
$visored->remove;
ok(!$visored->is_worn, "method was consumed");
+ok(!$role->is_anon_role, "the role is not anonymous");
+