X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03-roles.t;fp=t%2F03-roles.t;h=f3ff3ecf2210c5d26fe7ed29a4f87b91d44eaaa2;hb=4fb8b2bfce62abef02df6612738d6e1a1bdb1991;hp=271e79f430d7abead960d5f9105ff97c2624a2c0;hpb=9e40d3662cb2d194951fe95156a4aa8806c2f794;p=gitmo%2FMooseX-AlwaysCoerce.git diff --git a/t/03-roles.t b/t/03-roles.t index 271e79f..f3ff3ec 100644 --- a/t/03-roles.t +++ b/t/03-roles.t @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 15; +use Test::More tests => 16; use Test::Fatal; use Test::NoWarnings; @@ -43,12 +43,12 @@ 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 {