Sha256: cf1c3f99acfe3f42f7a51358f2b0429d04d5f0c152b3bfa43de0742fe1c49f44
Contents?: true
Size: 771 Bytes
Versions: 8
Compression:
Stored size: 771 Bytes
Contents
require 'spec_helper' require 'stringio' describe RSpec::Core::Formatters::ProgressFormatter do before do @output = StringIO.new @formatter = RSpec::Core::Formatters::ProgressFormatter.new(@output) @formatter.start(2) @formatter.stub!(:color_enabled?).and_return(false) end it "should produce line break on start dump" do @formatter.start_dump(3) @output.string.should == "\n" end it "should produce standard summary without pending when pending has a 0 count" do @formatter.start_dump(3) @formatter.dump_summary @output.string.should =~ /Finished in 3 seconds\n2 examples/i end it "should push nothing on start" do @formatter.start(4) @output.string.should == "" end end
Version data entries
8 entries across 8 versions & 1 rubygems