Commit 4fc52e1c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve has_codeclimate_data? spec in the merge_request_spec.rb

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0c37ea64
...@@ -2097,8 +2097,7 @@ describe MergeRequest, models: true do ...@@ -2097,8 +2097,7 @@ describe MergeRequest, models: true do
describe '#has_codeclimate_data?' do describe '#has_codeclimate_data?' do
context 'with codeclimate artifact' do context 'with codeclimate artifact' do
before do before do
artifact = double() artifact = double(success?: true)
allow(artifact).to receive(:success?).and_return(true)
allow(subject.head_pipeline).to receive(:codeclimate_artifact).and_return(artifact) allow(subject.head_pipeline).to receive(:codeclimate_artifact).and_return(artifact)
allow(subject.base_pipeline).to receive(:codeclimate_artifact).and_return(artifact) allow(subject.base_pipeline).to receive(:codeclimate_artifact).and_return(artifact)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment