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

17 lines
478 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-05-30 16:15:17 +05:30
describe 'head pipeline' do
it 'has a head pipeline field' do
expect(described_class).to have_graphql_field(:head_pipeline)
end
2018-11-08 19:23:39 +05:30
2019-05-30 16:15:17 +05:30
it 'authorizes the field' do
expect(described_class.fields['headPipeline'])
.to require_graphql_authorizations(:read_pipeline)
end
2018-11-08 19:23:39 +05:30
end
end