test/test_simplecov-console.rb in simplecov-console-0.7.1 vs test/test_simplecov-console.rb in simplecov-console-0.7.2
- old
+ new
@@ -30,23 +30,26 @@
assert_equal @console.missed(missed_lines), expected_result
end
def test_table_output
SimpleCov::Formatter::Console.output_style = 'table'
+ @console.include_output_style
files = [
SourceFile.new('foo.rb',5,[2,3],[Line.new(1), Line.new(4), Line.new(5)],40.0)
]
- actual = @console.table_output(files,'/')
+ actual = @console.output(files,'/')
assert actual.is_a? Terminal::Table
- assert_equal 1, actual.rows.count
+ assert_equal 1, actual.rows.count
end
def test_block_output
SimpleCov::Formatter::Console.use_colors = false
SimpleCov::Formatter::Console.output_style = 'block'
+ @console.include_output_style
+
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\n\n"
- assert_equal expected, @console.block_output(files,'/')
+ assert_equal expected, @console.output(files,'/')
end
end