Sha256: 2f341a533d6fd7bf33d23f21360550d83eaede73645f692549bd18c0df910c31
Contents?: true
Size: 897 Bytes
Versions: 14
Compression:
Stored size: 897 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' 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', 10, 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', 10, :skipped_param) @out.string.should == "" end end end end end
Version data entries
14 entries across 14 versions & 2 rubygems