Sha256: c2c679442119bf7e0027eadb510347359bcef256cb8a8fe13e0bb398ee001a3a

Contents?: true

Size: 498 Bytes

Versions: 3

Compression:

Stored size: 498 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper.rb'

module Spec
  module Runner
    module Formatter
      describe ProgressBarFormatter, "dry run" do
        before(:each) do
          @io = StringIO.new
          @formatter = ProgressBarFormatter.new(@io)
          @formatter.dry_run = true
        end
      
        it "should not produce summary on dry run" do
          @formatter.dump_summary(3, 2, 1, 0)
          @io.string.should eql("")
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-1.0.6 spec/spec/runner/formatter/progress_bar_formatter_dry_run_spec.rb
rspec-1.0.7 spec/spec/runner/formatter/progress_bar_formatter_dry_run_spec.rb
rspec-1.0.8 spec/spec/runner/formatter/progress_bar_formatter_dry_run_spec.rb