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

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

require 'spec_helper'

RSpec.describe Types::Ci::RunnerUpgradeStatusTypeEnum do
  specify { expect(described_class.graphql_name).to eq('CiRunnerUpgradeStatusType') }

  it 'exposes all upgrade status values' do
    expect(described_class.values.keys).to eq(
      ['UNKNOWN'] + ::Gitlab::Ci::RunnerUpgradeCheck::STATUSES.map { |sym, _| sym.to_s.upcase }
    )
  end
end