summaryrefslogtreecommitdiff
path: root/spec/graphql/types/merge_request_type_spec.rb
blob: fd1c782bcc54c237f276675bb48c7e3cf492db3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'spec_helper'

describe GitlabSchema.types['MergeRequest'] do
  it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::MergeRequest) }

  it { expect(described_class).to require_graphql_authorizations(:read_merge_request) }

  it { expect(described_class.interfaces).to include(Types::Notes::NoteableType.to_graphql) }

  describe 'nested head pipeline' do
    it { expect(described_class).to have_graphql_field(:head_pipeline) }
  end
end