Sha256: 292b26dbe7b0afd3c59016a49556f80e92767a56a969b273ec8e7193fc5c51c7

Contents?: true

Size: 812 Bytes

Versions: 53

Compression:

Stored size: 812 Bytes

Contents

require 'spec_helper'

describe Jasmine::Formatters::Multi do
  it "should delegate to the passed in formatters" do
    formatter1 = double(:formatter1)
    formatter2 = double(:formatter2)
    multi = Jasmine::Formatters::Multi.new([formatter1, formatter2])

    results1 = double(:results1)

    expect(formatter1).to receive(:format).with(results1)
    expect(formatter2).to receive(:format).with(results1)
    multi.format(results1)

    results2 = double(:results1)

    expect(formatter1).to receive(:format).with(results2)
    expect(formatter2).to receive(:format).with(results2)
    multi.format(results2)

    run_details = double(:run_details)

    expect(formatter1).to receive(:done).with(run_details)
    expect(formatter2).to receive(:done).with(run_details)
    multi.done(run_details)
  end
end

Version data entries

53 entries across 40 versions & 2 rubygems

Version Path
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.99.0 spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.10.0 spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.9.2 spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.9.1 spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.9.0 spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.8.1 spec/lib/jasmine/formatters/multi_spec.rb
jasmine-3.8.0 spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/spec/lib/jasmine/formatters/multi_spec.rb