#!/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(
$visored->remove;
ok(!$visored->is_worn, "method was consumed");
+ok(!$role->is_anon_role, "the role is not anonymous");
+
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 3;
+use Test::More tests => 5;
use Moose ();
my $role = Moose::Meta::Role->create_anon_role(
$visored->remove;
ok(!$visored->is_worn, "method was consumed");
+like($role->name, qr/^Moose::Meta::Role::__ANON__::SERIAL::\d+$/, "");
+ok($role->is_anon_role, "the role knows it's anonymous");
+