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

require 'spec_helper'

RSpec.describe GitlabSchema.types['CiJobStatus'] do
  it 'exposes all job status values' do
    expect(described_class.values.values).to contain_exactly(
      *::Ci::HasStatus::AVAILABLE_STATUSES.map do |status|
        have_attributes(value: status, graphql_name: status.upcase)
      end
    )
  end
end