This adds support to all validation matchers for validates! and :strict => true. Strict validations raise an exception instead of adding messages to be displayed to the user.
:strict => true
Add AllowValueMatcher#strict to test strict validations
* Checks for exceptions raised from #validates! and :strict => true
Add #strict option to validation matchers
* Allow verifying validates! and :strict => true
Remove duplication in ValidationMatcher
Extract ValidationMessageFinder from AllowValueMatcher
Extract ExceptionMessageFinder from AllowValueMatcher
* Replaces repeated conditional with polymorphism
Fix failure on 1.8.7
Implementation looks great. Looks like it could use some documentation.
Good call. I'll add some docs today.
Add documentation for strict validation testing