From f167f7693157b0db7969ce854558803d5aa92b22 Mon Sep 17 00:00:00 2001 From: Dave Corson-Knowles Date: Sat, 2 Nov 2024 11:19:55 -0700 Subject: [PATCH] Update simple_formatter.rb --- lib/simplecov/formatter/simple_formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simplecov/formatter/simple_formatter.rb b/lib/simplecov/formatter/simple_formatter.rb index b99338c0..4ddcf3fc 100644 --- a/lib/simplecov/formatter/simple_formatter.rb +++ b/lib/simplecov/formatter/simple_formatter.rb @@ -14,7 +14,7 @@ def format(result) output << ("=" * 40) output << "\n" files.each do |file| - output << "#{file.filename} (coverage: #{file.covered_percent.round(2)}%)\n" + output << "#{file.filename} (coverage: #{file.covered_percent.floor(2)}%)\n" end output << "\n" end