Welcome to mirror list, hosted at ThFree Co, Russian Federation.

services_enum_spec.rb « projects « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 91e398e8d8115ee5a67edb529617f4f6690bb699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

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.services_types.map(&:underscore).map(&:upcase)
end