Clean up lockable and class methods API.

This commit is contained in:
José Valim
2010-03-10 16:18:28 +01:00
parent 5a4b797265
commit 1bee9fbef9
12 changed files with 73 additions and 79 deletions

View File

@@ -47,14 +47,14 @@ class LockTest < ActionController::IntegrationTest
test "locked user should be able to unlock account" do
user = create_user(:locked => true)
assert user.locked?
assert user.access_locked?
visit_user_unlock_with_token(user.unlock_token)
assert_template 'home/index'
assert_contain 'Your account was successfully unlocked.'
assert_not user.reload.locked?
assert_not user.reload.access_locked?
end
test "sign in user automatically after unlocking it's account" do