Commit cb06951e authored by drew cimino's avatar drew cimino

Add a test case for blank job name

parent 273dbb3e
......@@ -56,6 +56,14 @@ RSpec.describe Gitlab::Badge::Coverage::Report do
end
end
context 'with a blank job name' do
let(:job_name) { ' ' }
it 'returns the pipeline coverage value' do
expect(badge.status).to eq(50.00)
end
end
context 'with an unmatching job name specified' do
let(:job_name) { 'incorrect name' }
......
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