Sha256: 902563607ba82725ebc4f34738bf2bd59c52fc4e94cafef956b5cdc1b03adb8e

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

# encoding: utf-8

# this is needed for guard to work, not sure why :(
require "bundler"
Bundler.setup

if RUBY_ENGINE == "rbx"
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
end

require 'virtus'
require 'rom'
require 'rom/adapter/memory'

root = Pathname(__FILE__).dirname

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

RSpec.configure do |config|
  config.before do
    @constants = Object.constants
  end

  config.after do
    (Object.constants - @constants).each { |name| Object.send(:remove_const, name) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rom-0.4.2 spec/spec_helper.rb
rom-0.4.1 spec/spec_helper.rb
rom-0.4.0 spec/spec_helper.rb