debian-mirror-gitlab/spec/graphql/types/projects/services_enum_spec.rb
2021-09-30 23:02:18 +05:30

14 lines
383 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe GitlabSchema.types['ServiceType'] do
it 'exposes all the existing project services' do
expect(described_class.values.keys).to match_array(available_services_enum)
end
def available_services_enum
::Integration.available_integration_types(include_dev: false).map(&:underscore).map(&:upcase)
end
end