Permalink
Browse files

Merge branch 'master' of github.com:nicksieger/ci_reporter

  • Loading branch information...
2 parents e59f269 + a4faf32 commit 00ffaea87805aa05ed8da5608784b13029237810 @nicksieger nicksieger committed Sep 5, 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 00ffaea

Please sign in to comment.