summaryrefslogtreecommitdiffstats
path: root/t/21-roles.t
diff options
context:
space:
mode:
Diffstat (limited to 't/21-roles.t')
-rw-r--r--t/21-roles.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/21-roles.t b/t/21-roles.t
index 5be41fd..255039d 100644
--- a/t/21-roles.t
+++ b/t/21-roles.t
@@ -9,7 +9,9 @@ use Test::More;
use MooseX::Bread::Board;
has role1 => (
- traits => ['Service'],
+ (Moose->VERSION < 1.9900
+ ? (traits => ['Service'])
+ : ()),
is => 'ro',
isa => 'Str',
value => 'ROLE1',
@@ -46,7 +48,9 @@ use Test::More;
use MooseX::Bread::Board;
has role2 => (
- traits => ['Service'],
+ (Moose->VERSION < 1.9900
+ ? (traits => ['Service'])
+ : ()),
is => 'ro',
isa => 'Str',
value => 'ROLE2',