Commit Graph

9 Commits

Author SHA1 Message Date
Elliot Winkler 1766a09299 Refactor submatcher logic in numericality matcher
...and also ComparisonMatcher
2015-01-22 21:05:08 -07:00
Elliot Winkler 12cc7aaace Remove all Ruby-emitted warnings
Run RSpec tests with warnings enabled so we stay on top of this better
in the future.
2014-07-18 18:00:08 -06:00
Elliot Winkler c22d7c89e0 Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
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