Sha256: 3ea31730420bb233e02a58ca21b0cca1b4d251a2c43fd3244cfad8f71ea4d758
Contents?: true
Size: 803 Bytes
Versions: 5
Compression:
Stored size: 803 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-mapper' begin require 'byebug' rescue LoadError end root = Pathname(__FILE__).dirname 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 def T(*args) ROM::Processor::Transproc::Functions[*args] end RSpec.configure do |config| config.after do Test.remove_constants end config.around do |example| ConstantLeakFinder.find(example) end end
Version data entries
5 entries across 5 versions & 1 rubygems