diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 21:11:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-16 21:11:26 +0300 |
commit | 8fa0c53e26c947ac647b8067fde3e9673b77b1a6 (patch) | |
tree | da32e7224125973e9e87d3856fb7e672ff41c8b1 /spec/support/rate_limiter.rb | |
parent | 0552020767452da44de2bf5424096f2cb2ea6bf5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/rate_limiter.rb')
-rw-r--r-- | spec/support/rate_limiter.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/rate_limiter.rb b/spec/support/rate_limiter.rb new file mode 100644 index 00000000000..525d593c293 --- /dev/null +++ b/spec/support/rate_limiter.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +RSpec.configure do |config| + config.before(:each, :disable_rate_limiter) do + allow(Gitlab::ApplicationRateLimiter).to receive(:throttled?).and_return(false) + end +end |