summaryrefslogtreecommitdiff
path: root/spec/graphql/types/ci/variable_type_enum_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/ci/variable_type_enum_spec.rb')
-rw-r--r--spec/graphql/types/ci/variable_type_enum_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/variable_type_enum_spec.rb b/spec/graphql/types/ci/variable_type_enum_spec.rb
new file mode 100644
index 00000000000..5604caebfff
--- /dev/null
+++ b/spec/graphql/types/ci/variable_type_enum_spec.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GitlabSchema.types['CiVariableType'] do
+ it 'matches the keys of Ci::Variable.variable_types' do
+ expect(described_class.values.keys).to contain_exactly('ENV_VAR', 'FILE')
+ end
+end