Welcome to mirror list, hosted at ThFree Co, Russian Federation.

job_status_enum_spec.rb « ci « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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