Permalink
Browse files

try to fix ci reporter for current cucumber

  • Loading branch information...
1 parent a7bd361 commit 03c19b5d6f35c7e32e44495ee6afdcdaac7eb375 Vincent Landgraf committed with nicksieger Mar 24, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/ci/reporter/cucumber.rb
@@ -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

0 comments on commit 03c19b5

Please sign in to comment.