Commit 2064506c authored by Ash McKenzie's avatar Ash McKenzie

Wrap contexts in .throttled? describe block

parent e31ec46d
...@@ -49,6 +49,7 @@ RSpec.describe Gitlab::ApplicationRateLimiter do ...@@ -49,6 +49,7 @@ RSpec.describe Gitlab::ApplicationRateLimiter do
end end
end end
describe '.throttled?' do
context 'when the key is an array of only ActiveRecord models' do context 'when the key is an array of only ActiveRecord models' do
let(:scope) { [user, project] } let(:scope) { [user, project] }
...@@ -71,8 +72,9 @@ RSpec.describe Gitlab::ApplicationRateLimiter do ...@@ -71,8 +72,9 @@ RSpec.describe Gitlab::ApplicationRateLimiter do
it_behaves_like 'action rate limiter' it_behaves_like 'action rate limiter'
end end
end
describe '#log_request' do describe '.log_request' do
let(:file_path) { 'master/README.md' } let(:file_path) { 'master/README.md' }
let(:type) { :raw_blob_request_limit } let(:type) { :raw_blob_request_limit }
let(:fullpath) { "/#{project.full_path}/raw/#{file_path}" } let(:fullpath) { "/#{project.full_path}/raw/#{file_path}" }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment