package Bar;
use Moose;
- ::ok ! ::exception {
+ ::is( ::exception {
has 'bar' => (metaclass => 'Bar::Meta::Attribute');
- }, '... the attribute metaclass need not be a Moose::Meta::Attribute as long as it behaves';
+ }, undef, '... the attribute metaclass need not be a Moose::Meta::Attribute as long as it behaves' );
}
{
package Another::Foo;
use Moose;
- ::ok ! ::exception {
+ ::is( ::exception {
has 'foo' => (metaclass => 'Foo');
- }, '... the attribute metaclass alias worked correctly';
+ }, undef, '... the attribute metaclass alias worked correctly' );
- ::ok ! ::exception {
+ ::is( ::exception {
has 'bar' => (metaclass => 'Bar', is => 'bare');
- }, '... the attribute metaclass alias worked correctly';
+ }, undef, '... the attribute metaclass alias worked correctly' );
}
{