Fix mock
This commit is contained in:
parent
0a9d9f7d50
commit
71046cc629
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue