Commit Graph

6 Commits

Author SHA1 Message Date
Elliot Winkler 91c6992912 Fix tests for ComparisonMatcher to use proper error messages 2014-04-26 11:27:28 -04:00
Elliot Winkler 23ff55ff5d v_n_o no longer treats numbers as floats
Essentially validate_numericality_of when used with a comparison
qualifier required you to use only_integer when the validation itself
had only_integer on it, because the boundaries of the comparison were
tested using small decimal numbers rather than whole numbers. This
change was introduced in bc110f7, but is obviously is a backward
incompatible change, so we are reverting it.
2014-04-26 11:27:24 -04:00
jmpage 36ed5ff7e5 Fix thoughtbot/shoulda-matchers#483 by using a less precise `diff_to_compare` value for large numbers in `ComparisonMatcher`. 2014-04-15 17:16:01 -04:00
Yukio Mizuta bc110f73b9 Update numericality comarison matcher more accurate 2014-02-26 19:48:29 -08:00
Yukio Mizuta 806716c79c Improve ValidateNumericalityOfMatcher document expression 2014-01-31 09:47:50 -07:00
Elliot Winkler 27c065ba55 Move ValidateNumericalityOf submatchers to a subfolder 2013-12-14 12:04:36 -07:00