Sha256: 13362cd63d879d6e68a423fc30462ba2dfa0172345a26e719536a95ff37eb188

Contents?: true

Size: 813 Bytes

Versions: 17

Compression:

Stored size: 813 Bytes

Contents

require 'spec_helper'
require 'stringio'

describe Rspec::Core::Formatters::ProgressFormatter do
  
   before do
     @output = StringIO.new
     @formatter = Rspec::Core::Formatters::ProgressFormatter.new
     @formatter.start(2)
     @formatter.stub!(:color_enabled?).and_return(false)
     @formatter.stub!(:output).and_return(@output)
   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

17 entries across 17 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.7 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.6 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.5 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.4 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.3 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.2 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.beta.1 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a10 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a9 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a8 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a7 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a6 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a5 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a4 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a3 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.0.a2 spec/rspec/core/formatters/progress_formatter_spec.rb