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

require "figaro"

require "bundler"
Bundler.require(:test)

require "pathname"
ROOT = Pathname.new(File.expand_path("../..", __FILE__))

Dir[ROOT.join("spec/support/**/*.rb")].each { |f| require f }

require "bundler"
Bundler.setup

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

require "figaro"

Bundler.require(:test)

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

Make sure that Bundler's load paths are properly set up ahead of time
Make sure that Bundler's load paths are properly set up ahead of time
