8361f39579
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. |
||
---|---|---|
.. | ||
shoulda | ||
shoulda-matchers.rb |