summaryrefslogtreecommitdiff
path: root/spec/graphql/types/alert_management/integration_type_enum_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/alert_management/integration_type_enum_spec.rb')
-rw-r--r--spec/graphql/types/alert_management/integration_type_enum_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/graphql/types/alert_management/integration_type_enum_spec.rb b/spec/graphql/types/alert_management/integration_type_enum_spec.rb
new file mode 100644
index 00000000000..0cdd67cb140
--- /dev/null
+++ b/spec/graphql/types/alert_management/integration_type_enum_spec.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe GitlabSchema.types['AlertManagementIntegrationType'] do
+ specify { expect(described_class.graphql_name).to eq('AlertManagementIntegrationType') }
+
+ describe 'statuses' do
+ using RSpec::Parameterized::TableSyntax
+
+ where(:name, :value) do
+ 'PROMETHEUS' | :prometheus
+ 'HTTP' | :http
+ end
+
+ with_them do
+ it 'exposes a type with the correct value' do
+ expect(described_class.values[name].value).to eq(value)
+ end
+ end
+ end
+end