sessions: remove nonexistent GET /session route.

This commit is contained in:
evazion
2019-08-14 01:46:43 -05:00
parent dbfd6185f1
commit d0428da120
2 changed files with 10 additions and 4 deletions

View File

@@ -30,5 +30,13 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
assert_nil(session[:user_id])
end
end
context "sign_out action" do
should "clear the session" do
get_auth sign_out_session_path, @user
assert_redirected_to posts_path
assert_nil(session[:user_id])
end
end
end
end