CE-EE parity for spec/views

This commit is contained in:
Robert Speicher 2019-07-24 15:19:23 -05:00
parent 6587d12703
commit 1dc2a2f689
No known key found for this signature in database
GPG key ID: 1D812769A7706642
2 changed files with 2 additions and 0 deletions

View file

@ -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)

View file

@ -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))