Skip to content

Commit

Permalink
Skipping CodeClimate reporter when the env var is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
americodls committed Apr 13, 2015
1 parent 49de844 commit 4bdf723
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
if ENV['CODECLIMATE_REPO_TOKEN']
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
end

# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
Expand Down

0 comments on commit 4bdf723

Please sign in to comment.