Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed progress formatter raising errors when running Scenario outlines
- Loading branch information
Joseph Wilk
committed
Apr 24, 2009
1 parent
0d258a6
commit f4898ef
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require File.dirname(__FILE__) + '/../../spec_helper' | ||
|
||
module Cucumber | ||
module Formatter | ||
describe Progress do | ||
|
||
before(:all) do | ||
Term::ANSIColor.coloring = false | ||
end | ||
|
||
describe "visiting a table cell value without a status" do | ||
it "should default to the 'pass' status" do | ||
out = StringIO.new | ||
progress = Progress.new(mock("step mother"), out, {}) | ||
|
||
progress.visit_table_cell_value('value', 10, nil) | ||
|
||
out.string.should == "." | ||
end | ||
end | ||
|
||
end | ||
end | ||
end |