diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-17 13:12:13 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-30 13:05:40 +0200 |
commit | 8ed6e2ec7ad992dda45042bcacea9e00a1bc6ab5 (patch) | |
tree | 2b094200300bfa264954e416362215760ccd17d6 /spec/views | |
parent | 6b02c82cfe68dc0f19cb3523eed1769a1e6d64b9 (diff) | |
download | gitlab-ce-8ed6e2ec7ad992dda45042bcacea9e00a1bc6ab5.tar.gz |
Fix test
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/merge_requests/show.html.haml_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/views/projects/merge_requests/show.html.haml_spec.rb b/spec/views/projects/merge_requests/show.html.haml_spec.rb index 02fe04253db..fe0780e72df 100644 --- a/spec/views/projects/merge_requests/show.html.haml_spec.rb +++ b/spec/views/projects/merge_requests/show.html.haml_spec.rb @@ -3,15 +3,16 @@ require 'spec_helper' describe 'projects/merge_requests/show.html.haml' do include Devise::TestHelpers + let(:user) { create(:user) } let(:project) { create(:project) } let(:fork_project) { create(:project, forked_from_project: project) } + let(:unlink_project) { Projects::UnlinkForkService.new(fork_project, user) } let(:closed_merge_request) do create(:closed_merge_request, source_project: fork_project, - source_branch: 'add-submodule-version-bump', - target_branch: 'master', - target_project: project) + target_project: project, + author: user) end before do @@ -31,7 +32,8 @@ describe 'projects/merge_requests/show.html.haml' do end it 'does not show the "Reopen" button when the source project does not exist' do - fork_project.destroy + unlink_project.execute + closed_merge_request.reload render |