Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Sep 12, 2024
1 parent c50bf6d commit 87f4d6a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/controllers/auth/omniauth_callbacks_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,8 @@ def omniauth_path(provider)
post omniauth_url(provider)
follow_redirect!

# Assert successful authentication.
assert_redirected_to root_path
assert_not_equal @controller.current_user, user
# assert not signed in because of double account (first has to confirm new account)
assert_nil @controller.current_user
identity.reload

assert_equal('NEW-UID', identity.identifier)
Expand Down Expand Up @@ -607,8 +606,8 @@ def omniauth_path(provider)
post omniauth_url(provider)
follow_redirect!

# Assert successful authentication.
assert_redirected_to root_path
# assert not signed in because of double account (first has to confirm new account)
assert_nil @controller.current_user
assert_not_equal @controller.current_user, user
identity.reload

Expand Down

0 comments on commit 87f4d6a

Please sign in to comment.