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