blob: 153934c374c3449d1bd8a283673d5ed09321442c (
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
|
# 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
state title
title_html
userPermissions
widgets
work_item_type
]
fields.each do |field_name|
expect(described_class).to have_graphql_fields(*fields)
end
end
end
|