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

Version Path
rspec-core-2.0.0.beta.17 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.16 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.15 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.14 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.13 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.12 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.11 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.10 spec/rspec/core/formatters/progress_formatter_spec.rb