From b019d3a700c1306d1305528d3b51c91366af3e0d Mon Sep 17 00:00:00 2001 From: Hauke Klement Date: Thu, 29 Jan 2015 08:46:50 +0100 Subject: [PATCH] only start Code Climate test reporter if corresponding token is set --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 95a877f7..90b8798a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,7 +16,7 @@ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration require 'codeclimate-test-reporter' -CodeClimate::TestReporter.start +CodeClimate::TestReporter.start if ENV['CODECLIMATE_REPO_TOKEN'] RSpec.configure do |config| # These two settings work together to allow you to limit a spec run