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

snippet_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: 66e9fa6dfdbe8de2305c5e3ef05b9a0ec6d63dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe Types::PermissionTypes::Snippet do
  it 'returns the snippets permissions' do
    expected_permissions = [
      :create_note, :award_emoji, :read_snippet, :update_snippet, :admin_snippet, :report_snippet
    ]

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