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" |
||
---|---|---|
.. | ||
action_controller | ||
active_model | ||
active_record | ||
doublespeak | ||
independent | ||
integrations | ||
action_controller.rb | ||
active_model.rb | ||
active_record.rb | ||
assertion_error.rb | ||
doublespeak.rb | ||
error.rb | ||
independent.rb | ||
matcher_context.rb | ||
rails_shim.rb | ||
util.rb | ||
version.rb | ||
warn.rb |