},
role_metaroles => {
- # applied_attribute should be available soon, for now roles are borked
- # applied_attribute => ['MooseX::AlwaysCoerce::Role::Meta::Attribute'],
+ (Moose->VERSION >= 1.9900
+ ? (applied_attribute => ['MooseX::AlwaysCoerce::Role::Meta::Attribute'])
+ : ()),
role => ['MooseX::AlwaysCoerce::Role::Meta::Class'],
}
);
use strict;
use warnings;
-use Test::More tests => 15;
+use Test::More tests => 16;
use Test::Fatal;
use Test::NoWarnings;
ok( (my $instance = MyClass->new), 'instance' );
{
- local $TODO = 'waiting on Moose changes for role support';
+ local $TODO = (Moose->VERSION < 1.9900 ? 'waiting on Moose changes for role support' : undef);
is( exception {
$instance->foo('bar');
- is $instance->foo, 3;
}, undef, 'attribute coercion ran' );
+ is($instance->foo, 3);
}
is( exception {