Commit eb36de62 authored by drew cimino's avatar drew cimino

Remove unecessary context block

This context is effectively testing the behavior of the
:latest_successful_for_ref scope on Ci::Pipeline, which is
well covered in the appropriate model spec.
parent e35ecfeb
......@@ -75,24 +75,6 @@ RSpec.describe Gitlab::Badge::Coverage::Report do
end
end
context 'when only failed pipeline exists' do
before do
create_pipeline do |pipeline|
create(:ci_build, :failed, pipeline: pipeline, coverage: 10)
end
end
it_behaves_like 'unknown coverage report'
context 'particular job specified' do
let(:job_name) { 'nonexistent' }
it 'retruns nil' do
expect(badge.status).to be_nil
end
end
end
context 'pipeline does not exist' do
it_behaves_like 'unknown coverage report'
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