Skip to content

Commit

Permalink
try to fix ci reporter for current cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Landgraf authored and nicksieger committed Apr 19, 2011
1 parent a7bd361 commit 03c19b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ci/reporter/cucumber.rb
Expand Up @@ -101,7 +101,12 @@ def after_examples(*args)
end

def before_table_row(table_row)
@test_case = TestCase.new("#@scenario (outline: #{table_row.name})")
row = table_row # shorthand for table_row
# check multiple versions of the row and try to find the best fit
outline = (row.respond_to? :name) ? row.name :
(row.respond_to? :scenario_outline) ? row.scenario_outline :
row.to_s
@test_case = TestCase.new("#@scenario (outline: #{outline})")
@test_case.start
end

Expand Down

0 comments on commit 03c19b5

Please sign in to comment.