debian-mirror-gitlab/spec/features/merge_request/user_edits_mr_spec.rb

34 lines
851 B
Ruby
Raw Normal View History

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
2020-06-23 00:09:42 +05:30
RSpec.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
2020-11-24 15:15:51 +05:30
context 'when merge_request_reviewers is turned off' do
before do
stub_feature_flags(merge_request_reviewers: false)
end
it 'does not render reviewers dropdown' do
expect(page).not_to have_selector('.js-reviewer-search')
end
end
2018-03-17 18:26:18 +05:30
end