diff --git a/lib/report_adapter.rb b/lib/report_adapter.rb index ea34a20..e596e63 100644 --- a/lib/report_adapter.rb +++ b/lib/report_adapter.rb @@ -11,7 +11,7 @@ class ReportAdapter end def summary(report) - "**Coverage**:\n\n#{table_head}\n| Lines | #{lines_covered_percent(report)}% | #{lines_minimum_percent(report)}% |\n#{table_footer}\n" + "**Coverage**:\n\n#{table_head}\n| Lines | #{lines_covered_percent(report)}% | #{lines_minimum_percent(report)}% |\n" end def annotations(_report) @@ -23,10 +23,6 @@ class ReportAdapter "| Type | covered | minimum |\n| ----- | ------- | ------- |" end - def table_footer - '| | | |' - end - def lines_covered_percent(report) @lines_covered_percent ||= report.dig('lines', 'covered_percent') end diff --git a/spec/fixtures/output/summary.md b/spec/fixtures/output/summary.md index 61b342c..7707b12 100644 --- a/spec/fixtures/output/summary.md +++ b/spec/fixtures/output/summary.md @@ -3,4 +3,3 @@ | Type | covered | minimum | | ----- | ------- | ------- | | Lines | 80% | 80% | -| | | |