2019-10-17 09:07:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-25 08:59:00 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe Types::PermissionTypes::MergeRequest do
|
2018-06-25 08:59:00 +00:00
|
|
|
it do
|
|
|
|
expected_permissions = [
|
|
|
|
:read_merge_request, :admin_merge_request, :update_merge_request,
|
|
|
|
:create_note, :push_to_source_branch, :remove_source_branch,
|
2020-09-12 00:08:44 +00:00
|
|
|
:cherry_pick_on_current_merge_request, :revert_on_current_merge_request,
|
|
|
|
:can_merge
|
2018-06-25 08:59:00 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
expect(described_class).to have_graphql_fields(expected_permissions)
|
|
|
|
end
|
|
|
|
end
|