2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
require 'spec_helper'
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
describe 'Merge request > User edits MR' do
|
2018-12-13 13:39:08 +05:30
|
|
|
include ProjectForksHelper
|
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
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
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
context 'for a forked project' do
|
2019-07-31 22:56:46 +05:30
|
|
|
let(:source_project) { fork_project(target_project, nil, repository: true) }
|
|
|
|
|
|
|
|
include_context 'merge request edit context'
|
|
|
|
it_behaves_like 'an editable merge request'
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
end
|