Sha256: 278950f6c591419ccc71a37a29ebb2cc6a08b56fc0863500f53015d946d5522c

Contents?: true

Size: 839 Bytes

Versions: 32

Compression:

Stored size: 839 Bytes

Contents

require 'spec_helper'
require 'rspec/core/formatters/progress_formatter'
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 "produces line break on start dump" do
     @formatter.start_dump
     @output.string.should == "\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)
     @output.string.should =~ /2 examples, 0 failures/i
     @output.string.should_not =~ /0 pending/i
   end

   it "pushes nothing on start" do
     @formatter.start(4)
     @output.string.should == ""
   end

end

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/progress_formatter_spec.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rspec-core-2.5.1/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.5.2 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.5.1 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.5.0 spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.4.0 spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.1.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.1.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.1.0 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.3.1 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.3.0 spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.0.3 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.2.1 spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.0.2 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
vim-jar-0.0.1 bundler/ruby/1.8/gems/rspec-core-2.1.0/spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.2.0 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.1.0 spec/rspec/core/formatters/progress_formatter_spec.rb
rspec-core-2.0.1 spec/rspec/core/formatters/progress_formatter_spec.rb
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-core-2.0.0/spec/rspec/core/formatters/progress_formatter_spec.rb