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. |
||
---|---|---|
.. | ||
shoulda | ||
shoulda-matchers.rb |