require 'bundler' Bundler.setup if RUBY_ENGINE == 'ruby' && ENV['CI'] == 'true' require 'simplecov' SimpleCov.start do add_filter '/spec/' end end require 'rom-yesql' require 'inflecto' require 'logger' begin require 'byebug' rescue LoadError # rubocop:disable Lint/HandleExceptions end LOGGER = Logger.new(File.open('./log/test.log', 'a')) root = Pathname(__FILE__).dirname Dir[root.join('shared/*.rb').to_s].each { |f| require f } RSpec.configure do |config| config.before do module Test end end config.after do Object.send(:remove_const, :Test) end config.disable_monkey_patching! end