Incorporate feedback from carlosantoniodasilva and update rememberable

tests
This commit is contained in:
Martin Davidsson
2010-09-24 10:53:43 +08:00
committed by Carlos Antonio da Silva
parent f3e348f6f4
commit ec0e105c52
2 changed files with 4 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ class RememberMeTest < ActionController::IntegrationTest
get destroy_user_session_path
assert_not warden.authenticated?(:user)
assert_nil user.reload.remember_token
assert_nil warden.cookies['remember_user_token']
end
test 'do not remember the user anymore after forget' do
@@ -140,5 +141,6 @@ class RememberMeTest < ActionController::IntegrationTest
get destroy_user_session_path
get users_path
assert_not warden.authenticated?(:user)
assert_nil warden.cookies['remember_user_token']
end
end