2019-04-07 14:35:16 -04:00
|
|
|
require 'spec_helper'
|
2017-08-01 14:03:07 -04:00
|
|
|
|
|
|
|
describe 'Merge request > User edits MR' do
|
2018-08-31 13:16:34 -04:00
|
|
|
include ProjectForksHelper
|
|
|
|
|
2019-04-07 14:35:16 -04:00
|
|
|
before do
|
|
|
|
stub_licensed_features(multiple_merge_request_assignees: false)
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'non-fork merge request' do
|
|
|
|
include_context 'merge request edit context'
|
|
|
|
it_behaves_like 'an editable merge request'
|
|
|
|
end
|
2017-08-01 14:03:07 -04:00
|
|
|
|
|
|
|
context 'for a forked project' do
|
2019-04-07 14:35:16 -04:00
|
|
|
let(:source_project) { fork_project(target_project, nil, repository: true) }
|
|
|
|
|
|
|
|
include_context 'merge request edit context'
|
|
|
|
it_behaves_like 'an editable merge request'
|
2017-08-01 14:03:07 -04:00
|
|
|
end
|
|
|
|
end
|