Sha256: 136c875bd5cb1889f9326b922c9b83ce65b2eb602d2c05b9dc06d7567edfcab3

Contents?: true

Size: 871 Bytes

Versions: 2

Compression:

Stored size: 871 Bytes

Contents

require 'bundler'
Bundler.setup

if RUBY_ENGINE == 'ruby' && ENV['COVERAGE'] == 'true'
  require 'yaml'
  rubies = YAML.load(File.read(File.join(__dir__, '..', '.travis.yml')))['rvm']
  latest_mri = rubies.select { |v| v =~ /\A\d+\.\d+.\d+\z/ }.max

  if RUBY_VERSION == latest_mri
    require 'simplecov'
    SimpleCov.start do
      add_filter '/spec/'
    end
  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

RSpec.configure do |config|
  config.before do
    module Test
    end
  end

  config.after do
    Object.send(:remove_const, :Test)
  end

  config.disable_monkey_patching!
  config.warnings = true
end

Dir[root.join('shared/*.rb').to_s].each { |f| require f }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-yesql-0.5.1 spec/spec_helper.rb
rom-yesql-0.5.0 spec/spec_helper.rb