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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/ci/runner_upgrade_status_type_enum_spec.rb')
-rw-r--r--spec/graphql/types/ci/runner_upgrade_status_type_enum_spec.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/graphql/types/ci/runner_upgrade_status_type_enum_spec.rb b/spec/graphql/types/ci/runner_upgrade_status_type_enum_spec.rb
deleted file mode 100644
index 03c784dcbe7..00000000000
--- a/spec/graphql/types/ci/runner_upgrade_status_type_enum_spec.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe Types::Ci::RunnerUpgradeStatusTypeEnum do
- let(:model_only_enum_values) { %w[not_processed] }
- let(:expected_graphql_source_values) do
- Ci::RunnerVersion.statuses.keys - model_only_enum_values
- end
-
- specify { expect(described_class.graphql_name).to eq('CiRunnerUpgradeStatusType') }
-
- it 'exposes all upgrade status values except not_processed' do
- expect(described_class.values.keys).to match_array(
- expected_graphql_source_values
- .map(&:upcase)
- .map { |v| v == 'INVALID_VERSION' ? 'INVALID' : v }
- )
- end
-
- it 'exposes all upgrade status values except enum-only values' do
- expect(described_class.values.values.map(&:value).map(&:to_s)).to match_array(expected_graphql_source_values)
- end
-end