CE-EE parity for spec/views
This commit is contained in:
parent
6587d12703
commit
1dc2a2f689
2 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ describe 'projects/merge_requests/creations/_new_submit.html.haml' do
|
|||
assign(:hidden_commit_count, 0)
|
||||
assign(:total_commit_count, merge_request.commits.count)
|
||||
assign(:project, merge_request.target_project)
|
||||
assign(:target_project, merge_request.target_project)
|
||||
assign(:mr_presenter, merge_request.present(current_user: merge_request.author))
|
||||
|
||||
allow(view).to receive(:can?).and_return(true)
|
||||
|
|
|
@ -23,6 +23,7 @@ describe 'projects/merge_requests/edit.html.haml' do
|
|||
|
||||
before do
|
||||
assign(:project, project)
|
||||
assign(:target_project, project)
|
||||
assign(:merge_request, closed_merge_request)
|
||||
assign(:mr_presenter, closed_merge_request.present(current_user: user))
|
||||
|
||||
|
|
Loading…
Reference in a new issue