debian-mirror-gitlab/spec/graphql/types/projects/services_enum_spec.rb
2021-01-29 00:20:46 +05:30

15 lines
443 B
Ruby

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