mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
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:
parent
42015fe8b2
commit
08f4edc032
@ -154,6 +154,8 @@ module TestSetup
|
|||||||
|
|
||||||
# Don't queue badge grant in test mode
|
# Don't queue badge grant in test mode
|
||||||
BadgeGranter.disable_queue
|
BadgeGranter.disable_queue
|
||||||
|
|
||||||
|
OmniAuth.config.test_mode = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user