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

work_item_spec.rb « permission_types « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e604ce5d6e0170fdb0e26ff8f2935e3821dd0e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Types::PermissionTypes::WorkItem do
  it do
    expected_permissions = [
      :read_work_item, :update_work_item, :delete_work_item
    ]

    expected_permissions.each do |permission|
      expect(described_class).to have_graphql_field(permission)
    end
  end
end