No need to disable rate limiter after running tests (#13093)

We disable rate limiter before running every test here 90ab3b1c75/spec/rails_helper.rb (L109-L109)
This commit is contained in:
Andrei Prigorshnev
2021-05-19 16:04:35 +04:00
committed by GitHub
parent 9e4288a4ab
commit 075cd07a07
11 changed files with 0 additions and 37 deletions

View File

@@ -692,8 +692,6 @@ RSpec.describe ApplicationController do
RateLimiter.enable
end
after { RateLimiter.disable }
it "serves a LimitExceeded error in the preferred locale" do
SiteSetting.max_likes_per_day = 1
post1 = Fabricate(:post)