From 47bdf9ed57780fccbca69ba0470fb57741494b3c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 21 Feb 2011 14:20:16 -0600 Subject: also support moose 2 inlining api --- t/21-roles.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 't') 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', -- cgit v1.2.3-54-g00ecf