Make sure merge request was created before deleting source

This commit is contained in:
Lin Jen-Shin 2016-10-25 01:56:39 +08:00
parent 78de8816f5
commit ed545d9f75

View file

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