diff options
Diffstat (limited to 'test/integration/account_test.rb')
-rw-r--r-- | test/integration/account_test.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index 11afd2b07..1e7e3b329 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -179,22 +179,4 @@ class AccountTest < ActionController::IntegrationTest assert_equal 66, user.auth_source_id assert user.hashed_password.blank? end - - def test_login_and_logout_should_clear_session - get '/login' - sid = session[:session_id] - - post '/login', :username => 'admin', :password => 'admin' - assert_redirected_to '/my/page' - assert_not_equal sid, session[:session_id], "login should reset session" - assert_equal 1, session[:user_id] - sid = session[:session_id] - - get '/' - assert_equal sid, session[:session_id] - - get '/logout' - assert_not_equal sid, session[:session_id], "logout should reset session" - assert_nil session[:user_id] - end end |