diff options
Diffstat (limited to 'spec/requests/api')
-rw-r--r-- | spec/requests/api/repositories_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb index d019e89e0b4..17cdb5166db 100644 --- a/spec/requests/api/repositories_spec.rb +++ b/spec/requests/api/repositories_spec.rb @@ -488,6 +488,17 @@ RSpec.describe API::Repositories do let(:current_user) { nil } end end + + context 'api_caching_repository_compare is disabled' do + before do + stub_feature_flags(api_caching_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 |