Sha256: 4c5422075b592012b65f6058e223d235f7282eb4cb70cade163f2d0bae03b5be

Contents?: true

Size: 734 Bytes

Versions: 3

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

if RUBY_ENGINE == 'ruby' && ENV['COVERAGE'] == 'true'
  require 'yaml'
  rubies = YAML.safe_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

begin
  require 'byebug'
rescue LoadError; end

require 'dry-system-rails'

SPEC_ROOT = Pathname(__dir__)

Dir[SPEC_ROOT.join('shared/**/*.rb')].each(&method(:require))
Dir[SPEC_ROOT.join('support/**/*.rb')].each(&method(:require))

ENV['RAILS_ENV'] ||= 'test'
require SPEC_ROOT.join('dummy/config/environment')

RSpec.configure(&:disable_monkey_patching!)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dry-system-rails-0.3.1 spec/spec_helper.rb
dry-system-rails-0.3.0 spec/spec_helper.rb
dry-system-rails-0.2.0 spec/spec_helper.rb