Make sure merge request was created before deleting source
This commit is contained in:
parent
78de8816f5
commit
ed545d9f75
1 changed files with 2 additions and 1 deletions
|
@ -1286,7 +1286,8 @@ describe MergeRequest, models: true do
|
|||
let(:project) { create(:project) }
|
||||
let(:user) { create(:user) }
|
||||
let(:fork_project) { create(:project, forked_from_project: project, namespace: user.namespace) }
|
||||
let(:merge_request) do
|
||||
|
||||
let!(:merge_request) do
|
||||
create(:closed_merge_request,
|
||||
source_project: fork_project,
|
||||
target_project: project)
|
||||
|
|
Loading…
Reference in a new issue