Sha256: 6f0bce241babba7f5ba578f07abf580b55ca6001176ea478495366f700addf5d

Contents?: true

Size: 927 Bytes

Versions: 28

Compression:

Stored size: 927 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'
require 'cucumber/formatter/progress'

module Cucumber
  module Formatter
    describe Progress do

      before(:all) do
        Term::ANSIColor.coloring = false
      end

      before(:each) do
        @out = StringIO.new
        @progress = Progress.new(mock("step mother"), @out, {})
      end

      describe "visiting a table cell value without a status" do
        it "should take the status from the last run step" do
          @progress.visit_step_result('', '', nil, :failed, nil, 10, nil)
          @progress.visit_table_cell_value('value', nil)

          @out.string.should == "FF"
        end
      end

      describe "visiting a table cell which is a table header" do
        it "should not output anything" do
          @progress.visit_table_cell_value('value', :skipped_param)

          @out.string.should == ""
        end
      end

    end
  end
end

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.11.200907091518 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.90 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.92 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.93.1 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.93 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.94.1 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.94 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.95 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.96 spec/cucumber/formatter/progress_spec.rb
aslakhellesoy-cucumber-0.3.97 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.90 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.92 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.93.1 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.94 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.95 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.96 spec/cucumber/formatter/progress_spec.rb
kosmas58-cucumber-0.3.97 spec/cucumber/formatter/progress_spec.rb
pezra-cucumber-0.3.94.1 spec/cucumber/formatter/progress_spec.rb
square-cucumber-0.3.93.1.1 spec/cucumber/formatter/progress_spec.rb
square-cucumber-0.3.93.1 spec/cucumber/formatter/progress_spec.rb