sub unimport {
no strict 'refs';
- my $class = _get_caller(@_);
+ my $class = Moose::_get_caller(@_);
# loop through the exports ...
foreach my $name ( keys %exports ) {
::dies_ok { extends() } '... extends() is not supported';
::dies_ok { augment() } '... augment() is not supported';
::dies_ok { inner() } '... inner() is not supported';
+
+ no Moose::Role;
}
my $foo_role = FooRole->meta;