Mock omniauth payload before creating identities (#15893)

This commit is contained in:
Anna Buianova 2021-12-28 18:06:17 +03:00 committed by GitHub
parent 792cd68786
commit c460cce85e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,6 +109,8 @@ RSpec.describe "Admin::Users", type: :request do
end
it "merges an identity on a single account into the other" do
omniauth_mock_twitter_payload
omniauth_mock_github_payload
create(:identity, user: user, provider: "twitter")
deleted_user_identity = create(:identity, user: user2)