1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# frozen_string_literal: true
require "helper"
require "simplecov/formatter/multi_formatter"
describe SimpleCov::Formatter::MultiFormatter do
describe ".[]" do
# Regression test for https://github.com/simplecov-ruby/simplecov/issues/428
it "constructs a formatter with multiple children" do
# Silence deprecation warnings.
allow(described_class).to receive(:warn)
children = [
SimpleCov::Formatter::SimpleFormatter,
SimpleCov::Formatter::SimpleFormatter
]
expect(described_class[*children].new.formatters).to eq(children)
end
end
end
|