mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +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
|
user.reload
|
||||||
expect(user.email).to eq(old_email)
|
expect(user.email).to eq(old_email)
|
||||||
|
|
||||||
|
delete "/session/#{user.username}" # log out
|
||||||
|
|
||||||
response = login(new_identity)
|
response = login(new_identity)
|
||||||
expect(response['authenticated']).to eq(nil)
|
expect(response['authenticated']).to eq(nil)
|
||||||
expect(response['email']).to eq(new_email)
|
expect(response['email']).to eq(new_email)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue