debian-mirror-gitlab/spec/graphql/types/merge_request_type_spec.rb

14 lines
474 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
require 'spec_helper'
describe GitlabSchema.types['MergeRequest'] do
it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::MergeRequest) }
2019-07-07 11:18:12 +05:30
it { expect(described_class).to require_graphql_authorizations(:read_merge_request) }
2018-11-08 19:23:39 +05:30
2019-09-04 21:01:54 +05:30
it { expect(described_class.interfaces).to include(Types::Notes::NoteableType.to_graphql) }
2019-07-07 11:18:12 +05:30
describe 'nested head pipeline' do
it { expect(described_class).to have_graphql_field(:head_pipeline) }
2018-11-08 19:23:39 +05:30
end
end