Commit b13e1d79 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add small corrections to test coverage report badge

parent 0c81279e
......@@ -9,7 +9,7 @@ module Gitlab
class Template < Badge::Template
STATUS_COLOR = {
good: '#4c1',
acceptable: '#b0c',
acceptable: '#a3c51c',
medium: '#dfb317',
low: '#e05d44',
unknown: '#9f9f9f'
......@@ -33,7 +33,7 @@ module Gitlab
end
def value_width
@status ? 32 : 58
@status ? 36 : 58
end
def value_color
......
......@@ -37,7 +37,7 @@ describe Gitlab::Badge::Coverage::Template do
describe '#value_width' do
context 'when coverage is known' do
it 'is narrower when coverage is known' do
expect(template.value_width).to eq 32
expect(template.value_width).to eq 36
end
end
......@@ -75,7 +75,7 @@ describe Gitlab::Badge::Coverage::Template do
end
it 'is green-orange' do
expect(template.value_color).to eq '#b0c'
expect(template.value_color).to eq '#a3c51c'
end
end
......@@ -113,7 +113,7 @@ describe Gitlab::Badge::Coverage::Template do
describe '#width' do
context 'when coverage is known' do
it 'returns the key width plus value width' do
expect(template.width).to eq 94
expect(template.width).to eq 98
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