thoughtbot/shoulda-matchers — pull request #489 by mcmire (2014-04-16 06:38:59+00:00)
Title: Revert allow_value raising CouldNotClearAttribute

This is a fix for #479.

----

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.