my @spec = $self->get_attribute($name);
Mouse::Meta::Attribute->create($pkg, $name, @spec);
}
-
}
1;
}
},
with => sub {
- return sub { }
+ return sub {
+ confess "Role does not currently support 'with'";
+ }
},
requires => sub {
return sub { }
no Mouse::Role;
};
-lives_ok {
+throws_ok {
package Role;
use Mouse::Role;
with 'Other::Role';
no Mouse::Role;
-};
+} qr/Role does not currently support 'with'/;
lives_ok {
package Role;