2020-12-04 18:09:55 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Types::Ci::Config::JobType do
|
|
|
|
specify { expect(described_class.graphql_name).to eq('CiConfigJob') }
|
|
|
|
|
|
|
|
it 'exposes the expected fields' do
|
|
|
|
expected_fields = %i[
|
2021-01-13 12:10:27 +00:00
|
|
|
afterScript
|
|
|
|
allowFailure
|
|
|
|
beforeScript
|
|
|
|
environment
|
|
|
|
except
|
|
|
|
script
|
2020-12-04 18:09:55 +00:00
|
|
|
name
|
2021-01-13 12:10:27 +00:00
|
|
|
only
|
2020-12-04 18:09:55 +00:00
|
|
|
group_name
|
|
|
|
stage
|
2021-01-13 12:10:27 +00:00
|
|
|
tags
|
2020-12-04 18:09:55 +00:00
|
|
|
needs
|
2021-01-13 12:10:27 +00:00
|
|
|
when
|
2020-12-04 18:09:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
expect(described_class).to have_graphql_fields(*expected_fields)
|
|
|
|
end
|
|
|
|
end
|