Permalink
Browse files

v0.007

  • Loading branch information...
1 parent 3a6843e commit b5dff7da44e8794d59066829012c1bcb5641c4be @RsrchBoy committed Apr 12, 2012
Showing with 17 additions and 1 deletion.
  1. +4 −0 Changes
  2. +13 −1 README.pod
View
@@ -2,6 +2,10 @@ Revision history for Test-Moose-More
{{$NEXT}}
+0.007 2012-04-11 17:52:41 America/Los_Angeles
+- add does_not_ok()
+- add 'does_not' option to validate_thing()/etc
+
0.006 2012-04-07 23:19:40 America/Los_Angeles
- fix POD and actually implement more of validate_thing()
View
@@ -8,7 +8,7 @@ Test::Moose::More - More tools for testing Moose packages
=head1 VERSION
-This document describes version 0.006 of Test::Moose::More - released April 07, 2012 as part of Test-Moose-More.
+This document describes version 0.007 of Test::Moose::More - released April 11, 2012 as part of Test-Moose-More.
=head1 SYNOPSIS
@@ -46,6 +46,14 @@ instance of the class you wish to check.
Note that the message will be taken verbatim unless it contains C<%s>
somewhere; this will be replaced with the name of the role being tested for.
+=head2 does_not_ok $thing, < $role | \@roles >, [ $message ]
+
+Checks to see if $thing does not do the given roles. $thing may be the class
+name or instance of the class you wish to check.
+
+Note that the message will be taken verbatim unless it contains C<%s>
+somewhere; this will be replaced with the name of the role being tested for.
+
=head2 has_method_ok $thing, @methods
Queries $thing's metaclass to see if $thing has the methods named in @methods.
@@ -74,8 +82,12 @@ validate_class 'Some::Class' => (
attributes => [ ... ],
methods => [ ... ],
isa => [ ... ],
+
+ # ensures class does these roles
does => [ ... ],
+ # ensures class does not do these roles
+ does_not => [ ... ],
);
=head2 validate_role

0 comments on commit b5dff7d

Please sign in to comment.