Sha256: a9afa9b8a7a1d87d19ece103a42036a6378af84605210be934e2d6b71ded77c5
Contents?: true
Size: 777 Bytes
Versions: 3
Compression:
Stored size: 777 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 'rom-sql' require 'rom-repository' begin require 'byebug' rescue LoadError end root = Pathname(__FILE__).dirname LOGGER = Logger.new(File.open('./log/test.log', 'a')) Dir[root.join('support/*.rb').to_s].each do |f| require f end Dir[root.join('shared/*.rb').to_s].each do |f| require f end # Namespace holding all objects created during specs 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.include(MapperRegistry) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rom-repository-0.2.0 | spec/spec_helper.rb |
rom-repository-0.2.0.rc1 | spec/spec_helper.rb |
rom-repository-0.2.0.beta1 | spec/spec_helper.rb |