Sha256: c5d82755749a101fd85679283908fa2c0ac62e24bb8aedb88d54c0c17fc0756a

Contents?: true

Size: 544 Bytes

Versions: 8

Compression:

Stored size: 544 Bytes

Contents

# encoding: utf-8

if RUBY_ENGINE == 'ruby' && RUBY_VERSION >= '2.4.0' && ENV['CI'] == 'true'
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
  end
end

require 'rom-yaml'

begin
  require 'byebug'
rescue LoadError
end

root = Pathname(__FILE__).dirname

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

module Test
  def self.remove_constants
    constants.each(&method(:remove_const))
  end
end

RSpec.configure do |config|
  config.after do
    Test.remove_constants
  end

  config.disable_monkey_patching!
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rom-yaml-3.0.0 spec/spec_helper.rb
rom-yaml-2.0.0 spec/spec_helper.rb
rom-yaml-2.0.0.rc2 spec/spec_helper.rb
rom-yaml-2.0.0.rc1 spec/spec_helper.rb
rom-yaml-2.0.0.beta1 spec/spec_helper.rb
rom-yaml-1.0.1 spec/spec_helper.rb
rom-yaml-1.0.0 spec/spec_helper.rb
rom-yaml-1.0.0.beta1 spec/spec_helper.rb