only start Code Climate test reporter if corresponding token is set

This commit is contained in:
Hauke Klement
2015-01-29 08:46:50 +01:00
parent 7ac25d55e5
commit b019d3a700

View File

@ -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