Sha256: 9a9d3a73d545515edcd6c4b718e93aebc1e689b225ff2a3a79f0eed4dcbbafe9

Contents?: true

Size: 566 Bytes

Versions: 37

Compression:

Stored size: 566 Bytes

Contents

require "helper"

require "simplecov/formatter/multi_formatter"

describe SimpleCov::Formatter::MultiFormatter do
  describe ".[]" do
    # Regression test for https://github.com/colszowka/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

Version data entries

37 entries across 37 versions & 10 rubygems

Version Path
dirwatch-0.0.9 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
dirwatch-0.0.8 vendor/bundle/ruby/2.5.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
tdiary-5.0.9 vendor/bundle/gems/simplecov-0.14.1/spec/multi_formatter_spec.rb
dirwatch-0.0.6 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
dirwatch-0.0.5 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
dirwatch-0.0.4 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
dirwatch-0.0.3 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/simplecov-0.13.0/spec/multi_formatter_spec.rb
simplecov-0.15.1 spec/multi_formatter_spec.rb
simplecov-0.15.0 spec/multi_formatter_spec.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/multi_formatter_spec.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/multi_formatter_spec.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/multi_formatter_spec.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/spec/multi_formatter_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simplecov-0.14.1/spec/multi_formatter_spec.rb
simplecov-patched-0.14.3 spec/multi_formatter_spec.rb
simplecov-patched-0.14.2 spec/multi_formatter_spec.rb
simplecov-0.14.1 spec/multi_formatter_spec.rb
simplecov-0.14.0 spec/multi_formatter_spec.rb
simplecov-0.13.0 spec/multi_formatter_spec.rb