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

require 'spec_helper'

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

  it 'contains attributes related to a runner' do
    expected_fields = %w[
      id description contacted_at maximum_timeout access_level active status
      version short_sha revision locked run_untagged ip_address runner_type tag_list
    ]

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