debian-mirror-gitlab/spec/graphql/types/ci/group_type_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
375 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Types::Ci::GroupType do
specify { expect(described_class.graphql_name).to eq('CiGroup') }
it 'exposes the expected fields' do
expected_fields = %i[
2021-09-30 23:02:18 +05:30
id
2020-10-24 23:57:45 +05:30
name
size
jobs
2021-01-03 14:25:43 +05:30
detailedStatus
2020-10-24 23:57:45 +05:30
]
expect(described_class).to have_graphql_fields(*expected_fields)
end
end