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

work_item_type_spec.rb « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6a5b4a0882e2d58cad966983c6934294454ed398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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) }

  it 'has specific fields' do
    fields = %i[description description_html id iid lock_version state title title_html work_item_type]

    fields.each do |field_name|
      expect(described_class).to have_graphql_fields(*fields)
    end
  end
end