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

16 lines
407 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
require 'spec_helper'
describe GitlabSchema.types['ServiceType'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('ServiceType') }
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
end
def available_services_enum
::Service.services_types.map(&:underscore).map(&:upcase)
end