mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
a23081f759
This commit changes the failure message that `allow_value` generates so that it reads a bit nicer. When a call to #valid? resulted in validation messages, `allow_value` formerly failed with this message: Expected errors to include "the message" when attr is set to "some value", got errors: ["another message (attribute: \"attr\", value: \"some value\")", "some other message (attribute: \"attr2\", value: \"some other value\")"] Now it fails with this message: Expected errors to include "the message" when attr is set to "some value", got errors: * "another message" (attribute: attr, value: "some value") * "some other message" (attribute: attr2, value: "some other value") Similarly, when a call to #valid resulted in an exception, `allow_value` formerly failed with this message: Expected errors to include "the message" when attr is set to "some value", got: some message Now it fails with this message: Expected errors to include "the message" when attr is set to "some value", got: "some message" |
||
---|---|---|
.. | ||
numericality_matchers | ||
uniqueness | ||
allow_mass_assignment_of_matcher.rb | ||
allow_value_matcher.rb | ||
disallow_value_matcher.rb | ||
ensure_length_of_matcher.rb | ||
errors.rb | ||
exception_message_finder.rb | ||
have_secure_password_matcher.rb | ||
helpers.rb | ||
numericality_matchers.rb | ||
uniqueness.rb | ||
validate_absence_of_matcher.rb | ||
validate_acceptance_of_matcher.rb | ||
validate_confirmation_of_matcher.rb | ||
validate_exclusion_of_matcher.rb | ||
validate_inclusion_of_matcher.rb | ||
validate_numericality_of_matcher.rb | ||
validate_presence_of_matcher.rb | ||
validate_uniqueness_of_matcher.rb | ||
validation_matcher.rb | ||
validation_message_finder.rb |