Commit Graph

14 Commits

Author SHA1 Message Date
Elliot Winkler 27c065ba55 Move ValidateNumericalityOf submatchers to a subfolder 2013-12-14 12:04:36 -07:00
Matt Daubert 5815d38fa0 Add have_secure_password matcher 2013-09-05 19:51:04 -06:00
Tiago Cardoso 9e77132b34 Add comparison submatchers to validate_numericality_of
You can now use the following with validate_numericality_of:

* is_greater_than (corresponds to :greater_than)
* is_greater_than_or_equal_to (corresponds to :greater_than_or_equal_to)
* is_equal_to (corresponds to :equal_to)
* is_less_than (corresponds_to :less_than)
* is_less_than_or_equal_to (corresponds_to :less_than_or_equal_to)
2013-05-23 21:08:40 -06:00
Abd ar-Rahman 8aa860dc2d Add odd & even number matchers for numericality matcher 2013-04-26 10:51:40 -04:00
Melissa Xie 53246538cf Remove 'validate_format_of' matcher
* See issue #252
2013-04-03 13:08:27 -04:00
Gabe Berke-Williams af8f9a7bff Use current thoughtbot style in specs 2012-12-26 22:45:54 -05:00
Reade Harris 6ba8c9f1a1 Use submatchers instead of inheritance for ValidatesNumericalityMatcher. 2012-11-09 09:35:20 -05:00
Jason Draper 1a71d16238 Try next values in array only.
If we can't find a valid next value outside of each item
in the array, throw a custom exception.
2012-10-05 12:58:43 -04:00
Joe Ferris fde078da02 Add documentation for strict validation testing 2012-09-14 09:59:24 -04:00
Joe Ferris 87327c225a Extract ExceptionMessageFinder from AllowValueMatcher
* Replaces repeated conditional with polymorphism
2012-09-12 20:48:30 -04:00
Joe Ferris 3dbf5d4f0d Extract ValidationMessageFinder from AllowValueMatcher 2012-09-12 20:25:33 -04:00
Blake Thomson 1b5fc27cf8 Add validates_confirmation_of matcher 2011-12-15 11:42:26 -05:00
Vasiliy Ermolovich d8308ec74d add ensure_exclusion_of 2011-10-16 20:49:58 +03:00
Markus Schwed 2a54fdb28d Seperate ActiveRecord and ActiveModel related matchers 2011-05-06 15:56:36 +02:00