Skip to content

Commit

Permalink
Add an attribute validation w/-compose
Browse files Browse the repository at this point in the history
...as this will be handled for the composed class, so let's show it now.
  • Loading branch information
rsrchboy committed Jul 12, 2015
1 parent ed8c2bf commit 594c7c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/validate_role/compose.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 594c7c9

Please sign in to comment.