mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
a21426c2d6
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. |
||
---|---|---|
.. | ||
action_controller | ||
active_model | ||
active_record | ||
independent |