DEV: Reset OmniAuth test mode between tests (#15278)

OmniAuth test mode is disabled by default, so that we can integration-test the omniauth strategies. Sometimes, we manually enable test mode for specific specs. This commit ensures that test_mode is always disabled again after each spec.
This commit is contained in:
David Taylor 2021-12-13 17:05:26 +00:00 committed by GitHub
parent 42015fe8b2
commit 08f4edc032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ module TestSetup
# Don't queue badge grant in test mode
BadgeGranter.disable_queue
OmniAuth.config.test_mode = false
end
end