Permalink
Browse files

v0.008

  • Loading branch information...
rsrchboy committed Apr 13, 2012
1 parent 7cfbefa commit 66c8dfc84c9f0b96b39e7eda66e66ce1a2c6dfa5
Showing with 12 additions and 2 deletions.
  1. +4 −0 Changes
  2. +8 −2 README.pod
View
@@ -2,6 +2,10 @@ Revision history for Test-Moose-More
{{$NEXT}}
+0.008 2012-04-13 13:52:33 America/Los_Angeles
+- add has_attribute_ok, and extended to deal with attributes in roles, as the
+ prior method seems to have stopped working.
+
0.007 2012-04-11 17:52:41 America/Los_Angeles
- add does_not_ok()
- add 'does_not' option to validate_thing()/etc
View
@@ -8,7 +8,7 @@ Test::Moose::More - More tools for testing Moose packages
=head1 VERSION
-This document describes version 0.007 of Test::Moose::More - released April 11, 2012 as part of Test-Moose-More.
+This document describes version 0.008 of Test::Moose::More - released April 13, 2012 as part of Test-Moose-More.
=head1 SYNOPSIS
@@ -23,7 +23,8 @@ This document describes version 0.007 of Test::Moose::More - released April 11,
=head1 DESCRIPTION
This package contains a number of additional tests that can be employed
-against Moose classes/roles. It is intended to replace L<Test::Moose>.
+against Moose classes/roles. It is intended to replace L<Test::Moose> in your
+tests, and reexports any tests that it has and we do not, yet.
=head1 FUNCTIONS
@@ -54,6 +55,11 @@ 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_attribute_ok $thing, $attribute_name, [ $message ]
+
+Checks C<$thing> for an attribute named C<$attribute_name>; C<$thing> may be a
+class name, instance, or role name.
+
=head2 has_method_ok $thing, @methods
Queries $thing's metaclass to see if $thing has the methods named in @methods.

0 comments on commit 66c8dfc

Please sign in to comment.