summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-12 15:26:55 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-08-15 14:39:46 +0200
commitb13e1d795a06499d0264b1103108057a7862826f (patch)
treee74d216561e05eeacb2069ade71b8f56ba32c897
parent0c81279ea2da8751c58d211d9eb857d227f4318d (diff)
downloadgitlab-ce-b13e1d795a06499d0264b1103108057a7862826f.tar.gz
Add small corrections to test coverage report badge
-rw-r--r--lib/gitlab/badge/coverage/template.rb4
-rw-r--r--spec/lib/gitlab/badge/coverage/template_spec.rb6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/badge/coverage/template.rb b/lib/gitlab/badge/coverage/template.rb
index 49a10d3e8e1..06e0d084e9f 100644
--- a/lib/gitlab/badge/coverage/template.rb
+++ b/lib/gitlab/badge/coverage/template.rb
@@ -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
diff --git a/spec/lib/gitlab/badge/coverage/template_spec.rb b/spec/lib/gitlab/badge/coverage/template_spec.rb
index a45de1dc677..383bae6e087 100644
--- a/spec/lib/gitlab/badge/coverage/template_spec.rb
+++ b/spec/lib/gitlab/badge/coverage/template_spec.rb
@@ -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