mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Destroy session between omniauth callbacks controller tests
This commit is contained in:
parent
796639a797
commit
f38942d121
1 changed files with 2 additions and 0 deletions
|
@ -290,6 +290,8 @@ RSpec.describe Users::OmniauthCallbacksController do
|
|||
user.reload
|
||||
expect(user.email).to eq(old_email)
|
||||
|
||||
delete "/session/#{user.username}" # log out
|
||||
|
||||
response = login(new_identity)
|
||||
expect(response['authenticated']).to eq(nil)
|
||||
expect(response['email']).to eq(new_email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue