$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'simplecov'
require 'webmock/rspec'
require 'codeclimate-test-reporter'
require 'pry'

WebMock.disable_net_connect!(allow: 'codeclimate.com')

CodeClimate::TestReporter.start

SimpleCov.start do
  add_filter '/spec'
  formatter SimpleCov::Formatter::MultiFormatter.new(
    [
      SimpleCov::Formatter::HTMLFormatter,
      CodeClimate::TestReporter::Formatter
    ]
  )
end

Dir['lib/**/*.rb'].each { |f| require_relative "../#{f}" }

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'simplecov'
require 'webmock/rspec'
require 'codeclimate-test-reporter'
require 'pry'

WebMock.disable_net_connect!(allow: 'codeclimate.com')

CodeClimate::TestReporter.start if RUBY_ENGINE == 'ruby'

SimpleCov.start do
  add_filter '/spec'
  formatter SimpleCov::Formatter::MultiFormatter.new(
    [
      SimpleCov::Formatter::HTMLFormatter,
      CodeClimate::TestReporter::Formatter
    ]
  )
end

Dir['lib/**/*.rb'].each { |f| require_relative "../#{f}" }

Send test coverage to codeclimate only for cruby
Send test coverage to codeclimate only for cruby
