From 08f4edc032e7336d2ea053e7c759f1431a8acb68 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 13 Dec 2021 17:05:26 +0000 Subject: [PATCH] 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. --- spec/rails_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 7f96bd1152..e6fe72fac5 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -154,6 +154,8 @@ module TestSetup # Don't queue badge grant in test mode BadgeGranter.disable_queue + + OmniAuth.config.test_mode = false end end