Permalink
Browse files

Merge pull request #68 from patcheng/master

make sure @suite is not nil before using it. This happens when the before(:suite) fails.
  • Loading branch information...
2 parents 00ffaea + adaa049 commit 63ea29a109ebc2970130282d684d15f28bc62585 @nicksieger nicksieger committed Sep 10, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/ci/reporter/rspec.rb
View
@@ -203,8 +203,10 @@ def description_for(name_or_example)
end
def write_report
- @suite.finish
- @report_manager.write_report(@suite)
+ if @suite
+ @suite.finish
+ @report_manager.write_report(@suite)
+ end
end
def new_suite(name)

0 comments on commit 63ea29a

Please sign in to comment.