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

if ENV['TRAVIS']
  begin
    require 'codeclimate-test-reporter'
    CodeClimate::TestReporter.start
  rescue LoadError
  end
end

begin
  require 'pry'
rescue LoadError
end

require 'mysql2'
require 'mysql_import'
require 'test/unit'

require  File.expand_path('support/db_config.rb', __dir__)
require  File.expand_path('support/db_helper.rb', __dir__)

Test::Unit::TestCase.include(DbHelper::QueryInterface)

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

if ENV['TRAVIS']
  begin
    require 'codeclimate-test-reporter'
    CodeClimate::TestReporter.start
  rescue LoadError
  end
end

begin
  require 'pry'
rescue LoadError
end

require 'mysql2'
require 'mysql_import'
require 'test/unit'

Dir[File.join(File.dirname(__FILE__), 'support/**/**.rb')].each {|f| require f }

Test::Unit::TestCase.include(DbHelper::QueryInterface)

Revert ":muscle: Fixed order of require"
Revert ":muscle: Fixed order of require"

This reverts commit d02d45d0735c3866a1664998de307d63436e2831.
