thoughtbot--shoulda-matchers/lib
Elliot Winkler 8361f39579 Refactor ValidationMatcher
This is part of a collection of commits that aim to improve failure
messages across the board, in order to make matchers easier to debug
when something goes wrong.

In this case, we're improving ValidationMatcher, which applies to most
matchers except for numericality.

* Reword the overall failure message so that it includes the failure
  message for the last submatcher that failed.
* Extract code to build the description to BuildDescription. This code
  now checks to see whether certain qualifiers have been specified and
  includes information about them in the description, if present.
* Add a base implementation of `with_message` to ValidationMatcher.
* Add simple booleans to check whether `with_message` or `strict` have
  been specified.
2015-12-13 20:22:21 -07:00
..
shoulda Refactor ValidationMatcher 2015-12-13 20:22:21 -07:00
shoulda-matchers.rb Switched to allowing a more canonical require statement 2011-01-31 16:45:13 -05:00