Revert "DEV: Move rate limiter disable to after :each for tests (#13986)" (#13987)

Revert “DEV: Move rate limiter disable to after :each for tests (#13986)” (#13987)

This reverts commit 52035dc665f84174caedf275f6b6282e0f80d220.

diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 59a0cb9..ab44d90 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -106,6 +106,7 @@ module TestSetup
     #
     # Discourse.redis = DiscourseMockRedis.new
 
+    RateLimiter.disable
     PostActionNotifier.disable
     SearchIndexer.disable
     UserActionManager.disable
@@ -259,8 +260,6 @@ RSpec.configure do |config|
 
     unfreeze_time
     ActionMailer::Base.deliveries.clear
-    RateLimiter.disable
-    RateLimiter.clear_all!
 
     if ActiveRecord::Base.connection_pool.stat[:busy] > 1
       raise ActiveRecord::Base.connection_pool.stat.inspect

GitHub sha: 93af139a76866619fbd903799566365ea235f11b

This commit appears in #13987 which was approved by tgxworld. It was merged by martin.