Skip to content

Commit

Permalink
test update to match line spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
hpainter committed Feb 28, 2020
1 parent 941e810 commit 3bd7b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/simplecov-console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def block_output(files, root)
block << sprintf("%8.8s: %s", 'missed', missed(f.missed_lines).join(", "))
blocks << block.join("\n")
end
"\n" << blocks.join("\n\n") << "\n"
"\n" << blocks.join("\n\n") << "\n\n"
end

end
2 changes: 1 addition & 1 deletion test/test_simplecov-console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_block_output
files = [
SourceFile.new('foo.rb',5,[2,3],[Line.new(1), Line.new(4), Line.new(5)],40.0)
]
expected = "\n file: foo.rb\ncoverage: 40.00% (2/5 lines)\n missed: 1, 4-5"
expected = "\n file: foo.rb\ncoverage: 40.00% (2/5 lines)\n missed: 1, 4-5\n\n"
assert_equal expected, @console.block_output(files,'/')
end
end

0 comments on commit 3bd7b20

Please sign in to comment.