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
end
end
describe '.throttled?' do
context 'when the key is an array of only ActiveRecord models' do
let(:scope) { [user, project] }
......@@ -71,8 +72,9 @@ RSpec.describe Gitlab::ApplicationRateLimiter do
it_behaves_like 'action rate limiter'
end
end
describe '#log_request' do
describe '.log_request' do
let(:file_path) { 'master/README.md' }
let(:type) { :raw_blob_request_limit }
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