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

measurement_identifier_enum_spec.rb « instance_statistics « analytics « admin « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 625fb17bbf8e4b9c3f97290b00e33e94f850e9f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['MeasurementIdentifier'] do
  specify { expect(described_class.graphql_name).to eq('MeasurementIdentifier') }

  it 'exposes all the existing identifier values' do
    identifiers = Analytics::InstanceStatistics::Measurement.identifiers.keys.map(&:upcase)

    expect(described_class.values.keys).to match_array(identifiers)
  end
end