Commit bf799c95 authored by Robert May's avatar Robert May

Add spec coverage for the flag being disabled

parent 1e075ea9
---
name: api_caching_rate_limit_repository_compare
introduced_by_url:
rollout_issue_url:
milestone: '14.0'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64407
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/334264
milestone: '14.1'
type: development
group: group::source code
default_enabled: false
......@@ -477,6 +477,17 @@ RSpec.describe API::Repositories do
let(:request) { get api(route, guest) }
end
end
context 'api_caching_rate_limit_repository_compare is disabled' do
before do
stub_feature_flags(api_caching_rate_limit_repository_compare: false)
end
it_behaves_like 'repository compare' do
let(:project) { create(:project, :public, :repository) }
let(:current_user) { nil }
end
end
end
describe 'GET /projects/:id/repository/contributors' do
......
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