Sha256: 168ab3803831d226df0d676aa4b362aa3ea62ec80d09aa5e772c7375719d70fd

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

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 'dry-equalizer'

RSpec.configure do |config|
  config.raise_errors_for_deprecations!

  config.disable_monkey_patching!

  config.expect_with :rspec do |expect_with|
    expect_with.syntax = :expect
  end

  config.warnings = true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-equalizer-0.2.2 spec/spec_helper.rb
dry-equalizer-0.2.1 spec/spec_helper.rb