use strict;
use warnings;
-use Test::More tests => 16;
-use Test::Exception;
-
+use Test::More;
+use Test::Fatal;
{
package Bar;
use Moose;
- ::lives_ok {
+ ::ok ! ::exception {
has 'bar' => (metaclass => 'Bar::Meta::Attribute');
- } '... the attribute metaclass need not be a Moose::Meta::Attribute as long as it behaves';
+ }, '... the attribute metaclass need not be a Moose::Meta::Attribute as long as it behaves';
}
{
package Another::Foo;
use Moose;
- ::lives_ok {
+ ::ok ! ::exception {
has 'foo' => (metaclass => 'Foo');
- } '... the attribute metaclass alias worked correctly';
+ }, '... the attribute metaclass alias worked correctly';
- ::lives_ok {
+ ::ok ! ::exception {
has 'bar' => (metaclass => 'Bar', is => 'bare');
- } '... the attribute metaclass alias worked correctly';
+ }, '... the attribute metaclass alias worked correctly';
}
{
isa_ok($bar_attr, 'Moose::Meta::Attribute');
}
-
+done_testing;