summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-02-21 14:20:16 -0600
committerJesse Luehrs <doy@tozt.net>2011-02-21 14:20:16 -0600
commit47bdf9ed57780fccbca69ba0470fb57741494b3c (patch)
treebc6857987596403b48045610c0d6c5109d99d75e /t
parentccb6cf33d33e58eef1937253be5c470f9449354a (diff)
downloadbread-board-declare-47bdf9ed57780fccbca69ba0470fb57741494b3c.tar.gz
bread-board-declare-47bdf9ed57780fccbca69ba0470fb57741494b3c.zip
also support moose 2 inlining api
Diffstat (limited to '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',