make sure @suite is not nil before using it. This happens when the before(:suite) fails. #68

Merged
merged 1 commit into from Sep 10, 2012
Commits on Jul 17, 2012
  1. make sure @suite is not nil

    Patrick Cheng committed Jul 17, 2012
    We had an issue with our RSpec config.before(:suite) block.  Was
    getting:
    
    NoMethodError: undefined method `finish' for nil:NilClass
      write_report at …/ci_reporter-1.7.0/lib/ci/reporter/rspec.rb:202