thoughtbot--shoulda-matchers/spec/shoulda/matchers
Elliot Winkler a21426c2d6 Raise CouldNotSetPasswordError more safely
It seems that adding a restriction to allow_value to raise
CouldNotClearAttribute if nil cannot be set on the attribute in question
broke a lot of people's tests. Really the only reason we added this was
for validate_presence_of -- it rescued CouldNotClearAttribute and
re-raised it as CouldNotSetPasswordError, but only for passwords and
only if has_secure_password was being used. So, I've figured out another
way of performing this check inside of validate_presence_of only to
prevent tests that have nothing to do with from breaking unnecessarily.
2014-04-16 12:17:58 -06:00
..
action_controller Do not permanently overwrite Parameters#[] 2014-04-11 14:49:48 -06:00
active_model Raise CouldNotSetPasswordError more safely 2014-04-16 12:17:58 -06:00
active_record Fix `belong_to` used with polymorphic association 2014-04-12 14:49:01 -06:00
independent Restore delegate_method matcher 2014-03-21 14:54:16 -04:00