Commit cc3caef9 authored by Olivier Gonzalez's avatar Olivier Gonzalez

Fix broken test

parent 5cf6bade
...@@ -13,9 +13,8 @@ describe Ci::Build do ...@@ -13,9 +13,8 @@ describe Ci::Build do
let(:job) { create(:ci_build, pipeline: pipeline) } let(:job) { create(:ci_build, pipeline: pipeline) }
# .codeclimate is deprecated and replaced with .code_quality_artifact (#5779) describe '.code_quality' do
describe '.codeclimate' do subject { described_class.code_quality }
subject { described_class.codeclimate }
context 'when a job name is codeclimate' do context 'when a job name is codeclimate' do
let!(:job) { create(:ci_build, pipeline: pipeline, name: 'codeclimate') } let!(:job) { create(:ci_build, pipeline: pipeline, name: 'codeclimate') }
...@@ -29,16 +28,6 @@ describe Ci::Build do ...@@ -29,16 +28,6 @@ describe Ci::Build do
it { is_expected.to include(job) } it { is_expected.to include(job) }
end end
context 'when a job name is irrelevant' do
let!(:job) { create(:ci_build, pipeline: pipeline, name: 'codechecker') }
it { is_expected.not_to include(job) }
end
end
describe '.code_quality' do
subject { described_class.code_quality }
context 'when a job name is code_quality' do context 'when a job name is code_quality' do
let!(:job) { create(:ci_build, pipeline: pipeline, name: 'code_quality') } let!(:job) { create(:ci_build, pipeline: pipeline, name: 'code_quality') }
......
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