Skip to content

Commit d18df1f

Browse files
committed
Correct color coding for code coverage ratings in the Coverage section
Color coding for each grade should be based in coverage_rating, not rating
1 parent a076462 commit d18df1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubycritic/generators/html/templates/simple_cov_index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<tr>
2424
<% unless Config.suppress_ratings %>
2525
<td>
26-
<div class="rating <%= analysed_module.rating.to_s.downcase %>"><%= analysed_module.coverage_rating %></div>
26+
<div class="rating <%= analysed_module.coverage_rating.to_s.downcase %>"><%= analysed_module.coverage_rating %></div>
2727
</td>
2828
<% end %>
2929
<td>

0 commit comments

Comments
 (0)