Small cleanup.

This commit is contained in:
José Valim
2010-03-30 00:29:57 +02:00
parent a6a018253e
commit 22e1fa0cb9
4 changed files with 10 additions and 19 deletions

View File

@@ -81,7 +81,9 @@ class LockTest < ActionController::IntegrationTest
test "user should not send a new e-mail if already locked" do
user = create_user(:locked => true)
user.update_attribute(:failed_attempts, User.maximum_attempts + 1)
user.failed_attempts = User.maximum_attempts + 1
user.save!
ActionMailer::Base.deliveries.clear
sign_in_as_user(:password => "invalid")