diff options
Diffstat (limited to 'spec/controllers/groups/settings/integrations_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups/settings/integrations_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/groups/settings/integrations_controller_spec.rb b/spec/controllers/groups/settings/integrations_controller_spec.rb index cdcdfde175f..beb2ad3afec 100644 --- a/spec/controllers/groups/settings/integrations_controller_spec.rb +++ b/spec/controllers/groups/settings/integrations_controller_spec.rb @@ -46,7 +46,7 @@ RSpec.describe Groups::Settings::IntegrationsController do describe '#edit' do context 'when user is not owner' do it 'renders not_found' do - get :edit, params: { group_id: group, id: Service.available_services_names.sample } + get :edit, params: { group_id: group, id: Service.available_services_names(include_project_specific: false).sample } expect(response).to have_gitlab_http_status(:not_found) end @@ -61,13 +61,13 @@ RSpec.describe Groups::Settings::IntegrationsController do it 'returns not_found' do stub_feature_flags(group_level_integrations: false) - get :edit, params: { group_id: group, id: Service.available_services_names.sample } + get :edit, params: { group_id: group, id: Service.available_services_names(include_project_specific: false).sample } expect(response).to have_gitlab_http_status(:not_found) end end - Service.available_services_names.each do |integration_name| + Service.available_services_names(include_project_specific: false).each do |integration_name| context "#{integration_name}" do it 'successfully displays the template' do get :edit, params: { group_id: group, id: integration_name } |