summaryrefslogtreecommitdiff
path: root/spec/graphql/types/ci/test_suite_type_spec.rb
blob: d9caca3e2c3005a1cf03209c9d0b299ad7439859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

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

  it 'contains attributes related to a pipeline test suite' do
    expected_fields = %w[
      name total_time total_count success_count failed_count skipped_count error_count suite_error test_cases
    ]

    expect(described_class).to have_graphql_fields(*expected_fields)
  end
end