summaryrefslogtreecommitdiff
path: root/spec/graphql/types/ci/test_case_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/ci/test_case_type_spec.rb')
-rw-r--r--spec/graphql/types/ci/test_case_type_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/graphql/types/ci/test_case_type_spec.rb b/spec/graphql/types/ci/test_case_type_spec.rb
new file mode 100644
index 00000000000..e6cd70c287e
--- /dev/null
+++ b/spec/graphql/types/ci/test_case_type_spec.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe Types::Ci::TestCaseType do
+ specify { expect(described_class.graphql_name).to eq('TestCase') }
+
+ it 'contains attributes related to a pipeline test case' do
+ expected_fields = %w[
+ name status classname file attachment_url execution_time stack_trace system_output recent_failures
+ ]
+
+ expect(described_class).to have_graphql_fields(*expected_fields)
+ end
+end