Permalink
Browse files

Merge pull request #71 from btaitelb/master

Works around failure that occurs when features include tables
  • Loading branch information...
2 parents 3962e08 + b27c674 commit a4faf32db2d5d4cd9b5cb5aceed59a728ec0716d @nicksieger nicksieger committed Aug 6, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/ci/reporter/cucumber.rb
@@ -116,9 +116,11 @@ def after_table_row(table_row)
return
end
@test_case.finish
- @test_case.failures << CucumberFailure.new(table_row) if table_row.failed?
- test_suite.testcases << @test_case
- @test_case = nil
+ if table_row.respond_to? :failed?
+ @test_case.failures << CucumberFailure.new(table_row) if table_row.failed?
+ test_suite.testcases << @test_case
+ @test_case = nil
+ end
end
end
end

0 comments on commit a4faf32

Please sign in to comment.