File tree 2 files changed +5
-5
lines changed
lib/gitlab/badge/coverage
spec/lib/gitlab/badge/coverage
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module Coverage
9
9
class Template < Badge ::Template
10
10
STATUS_COLOR = {
11
11
good : '#4c1' ,
12
- acceptable : '#b0c ' ,
12
+ acceptable : '#a3c51c ' ,
13
13
medium : '#dfb317' ,
14
14
low : '#e05d44' ,
15
15
unknown : '#9f9f9f'
@@ -33,7 +33,7 @@ def key_width
33
33
end
34
34
35
35
def value_width
36
- @status ? 32 : 58
36
+ @status ? 36 : 58
37
37
end
38
38
39
39
def value_color
Original file line number Diff line number Diff line change 37
37
describe '#value_width' do
38
38
context 'when coverage is known' do
39
39
it 'is narrower when coverage is known' do
40
- expect ( template . value_width ) . to eq 32
40
+ expect ( template . value_width ) . to eq 36
41
41
end
42
42
end
43
43
75
75
end
76
76
77
77
it 'is green-orange' do
78
- expect ( template . value_color ) . to eq '#b0c '
78
+ expect ( template . value_color ) . to eq '#a3c51c '
79
79
end
80
80
end
81
81
113
113
describe '#width' do
114
114
context 'when coverage is known' do
115
115
it 'returns the key width plus value width' do
116
- expect ( template . width ) . to eq 94
116
+ expect ( template . width ) . to eq 98
117
117
end
118
118
end
119
119
You can’t perform that action at this time.
0 commit comments