blob: c556424b0b4d2e81634d46c703ce71cd1f679010 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe GitlabSchema.types['WorkItem'] do
specify { expect(described_class.graphql_name).to eq('WorkItem') }
specify { expect(described_class).to require_graphql_authorizations(:read_work_item) }
specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::WorkItem) }
it 'has specific fields' do
fields = %i[
confidential
description
description_html
id
iid
lock_version
project
state title
title_html
userPermissions
widgets
work_item_type
created_at
updated_at
closed_at
]
fields.each do |field_name|
expect(described_class).to have_graphql_fields(*fields)
end
end
end
|