thoughtbot--shoulda-matchers/lib/shoulda/matchers/active_model
Elliot Winkler 583be384c3 Refactor allow_value & disallow_value
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.

* Have the failure message describe more clearly what the `allow_value`
  matcher was trying to do when it failed.
* Make the description of the matcher more readable.
* For each value that `allow_value` sets, use a different Validator
  instance. The matcher still changes state as it runs, but a future
  commit will refactor this further.
* Merge StrictValidator back into Validator, and remove it. The way that
  StrictValidator worked (as a module that was mixed into an instance of
  Validator at runtime) was confusing, and there's really no need to
  split out the logic anymore.
* Fix or fill in tests involving failure messages and descriptions.
2015-12-13 20:22:22 -07:00
..
numericality_matchers Fix numericality matcher w/ numeric columns 2015-10-08 23:37:08 -06:00
validation_matcher Refactor ValidationMatcher 2015-12-13 20:22:21 -07:00
allow_mass_assignment_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
allow_value_matcher.rb Refactor allow_value & disallow_value 2015-12-13 20:22:22 -07:00
disallow_value_matcher.rb Refactor allow_value & disallow_value 2015-12-13 20:22:22 -07:00
errors.rb Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
have_secure_password_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
helpers.rb Refactor allow_value & disallow_value 2015-12-13 20:22:22 -07:00
numericality_matchers.rb Extract examples in README to inline documentation 2014-06-20 16:41:27 -06:00
validate_absence_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
validate_acceptance_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
validate_confirmation_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
validate_exclusion_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
validate_inclusion_of_matcher.rb Fix inclusion matcher w/ date & datetime attrs 2015-10-04 16:55:48 -06:00
validate_length_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
validate_numericality_of_matcher.rb Do not raise CouldNotSetAttributeError on decimal columns 2015-10-23 14:38:01 -06:00
validate_presence_of_matcher.rb Refer to Minitest in docs over Test::Unit 2015-09-30 13:18:23 -06:00
validation_matcher.rb Refactor ValidationMatcher 2015-12-13 20:22:21 -07:00
validation_message_finder.rb Remove Rails 3.x, Ruby 1.9.2, Ruby 1.9.3 2015-02-09 10:52:22 -07:00
validator.rb Refactor allow_value & disallow_value 2015-12-13 20:22:22 -07:00