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

require "interactor/rails"

require "bundler"
Bundler.require(:test)

ROOT = File.expand_path("../..", __FILE__)

Dir[File.expand_path("../support/*.rb", __FILE__)].each { |f| require f }

if ENV["CODECLIMATE_REPO_TOKEN"]
  require "simplecov"
  SimpleCov.start
end

require "interactor/rails"

require "bundler"
Bundler.require(:test)

ROOT = File.expand_path("../..", __FILE__)

Dir[File.expand_path("../support/*.rb", __FILE__)].each { |f| require f }

Upgrade to the latest version of the CodeClimate test reporter
Upgrade to the latest version of the CodeClimate test reporter
