Skip to content

Instantly share code, notes, and snippets.

@Ragmaanir
Created May 20, 2011 16:27
Show Gist options
  • Save Ragmaanir/983273 to your computer and use it in GitHub Desktop.
Save Ragmaanir/983273 to your computer and use it in GitHub Desktop.
expect{
User.authenticate(user.email,invalid_password)
}.to change{
# *user* is not changed!
# i have to a)
User.first(:email => user.email).last_failed_login_attempt_at
# or b)
#user.reload
# user.last_....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment