From 594c7c9a98783c2aa12721f2654fe922bcdb3fc0 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Sat, 11 Jul 2015 14:58:31 -0700 Subject: [PATCH] Add an attribute validation w/-compose ...as this will be handled for the composed class, so let's show it now. --- t/validate_role/compose.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/t/validate_role/compose.t b/t/validate_role/compose.t index b1e3691..355faab 100644 --- a/t/validate_role/compose.t +++ b/t/validate_role/compose.t @@ -44,11 +44,11 @@ use TAP::SimpleOutput 'counters'; validate_role 'TestRole' => ( -compose => 1, - attributes => [ 'bar' ], - does => [ 'TestRole' ], - does_not => [ 'TestRole::Two' ], - methods => [ qw{ method1 } ], - required_methods => [ qw{ blargh } ], + attributes => [ bar => { -does => ['Array'] } ], + does => [ 'TestRole' ], + does_not => [ 'TestRole::Two' ], + methods => [ qw{ method1 } ], + required_methods => [ qw{ blargh } ], ); done_testing;