This commit is contained in:
Lin Jen-Shin 2016-08-11 17:56:55 +08:00
parent 0a9d9f7d50
commit 71046cc629
1 changed files with 2 additions and 2 deletions

View File

@ -463,8 +463,8 @@ describe MergeRequest, models: true do
allow(subject).to receive(:diff_head_sha).and_return('123abc')
expect(subject.source_project).to receive(:pipeline).
with('123abc', 'master').
expect(subject.source_project).to receive(:pipeline_for).
with('master', '123abc').
and_return(pipeline)
expect(subject.pipeline).to eq(pipeline)