Sha256: 9086dda5798943a1886c0b2d9e480a94000ec88ec9ae53c1d3893c5852452029

Contents?: true

Size: 845 Bytes

Versions: 39

Compression:

Stored size: 845 Bytes

Contents

require 'spec_helper'
require 'rspec/core/formatters/progress_formatter'

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 "produces line break on start dump" do
     @formatter.start_dump
     expect(@output.string).to eq("\n")
   end

   it "produces standard summary without pending when pending has a 0 count" do
     @formatter.start_dump
     @formatter.dump_summary(0.00001, 2, 0, 0)
     expect(@output.string).to match(/2 examples, 0 failures/i)
     expect(@output.string).not_to match(/0 pending/i)
   end

   it "pushes nothing on start" do
     @formatter.start(4)
     expect(@output.string).to eq("")
   end

end

Version data entries

39 entries across 39 versions & 8 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rspec-core-2.14.8/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.99.2 spec/rspec/core/formatters/progress_formatter_spec.rb
dxruby_rp5-0.0.4 spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.99.1 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.99.0 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.99.0.rc1 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.14.8 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.99.0.beta2 spec/rspec/core/formatters/progress_formatter_spec.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb
dxruby_rp5-0.0.3 spec/vendor/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb
tuktuk-rails-0.0.10 vendor/bundle/ruby/2.0.0/gems/rspec-core-2.14.7/spec/rspec/core/formatters/progress_formatter_spec.rb