debian-mirror-gitlab/spec/graphql/types/projects/services_enum_spec.rb

14 lines
383 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['ServiceType'] do
2020-04-22 19:07:51 +05:30
it 'exposes all the existing project services' do
expect(described_class.values.keys).to match_array(available_services_enum)
end
2021-09-04 01:27:46 +05:30
def available_services_enum
2021-09-30 23:02:18 +05:30
::Integration.available_integration_types(include_dev: false).map(&:underscore).map(&:upcase)
2021-09-04 01:27:46 +05:30
end
2020-04-22 19:07:51 +05:30
end