Sha256: 19e504f70393db5a6fdbc910c6d8bd5d5502e29c7d0634362cc157ef4134c1f6
Contents?: true
Size: 699 Bytes
Versions: 6
Compression:
Stored size: 699 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) formatter1.should_receive(:format).with(results1) formatter2.should_receive(:format).with(results1) multi.format(results1) results2 = double(:results1) formatter1.should_receive(:format).with(results2) formatter2.should_receive(:format).with(results2) multi.format(results2) formatter1.should_receive(:done) formatter2.should_receive(:done) multi.done end end
Version data entries
6 entries across 6 versions & 1 rubygems