Sha256: 190c4a6a5c859a655fc4f644df0941e1ede2f5ec61502bf4866e9233762679b7
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 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' require 'anima' begin require 'byebug' rescue LoadError end 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 } # 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.around do |example| ConstantLeakFinder.find(example) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rom-0.6.2 | spec/spec_helper.rb |
rom-0.6.1 | spec/spec_helper.rb |