Sha256: fc3c6a3def89bfbb2ee10598c205fdd0f8c4965bab810facbeb96a001147ded7
Contents?: true
Size: 722 Bytes
Versions: 5
Compression:
Stored size: 722 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' 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rom-0.6.0 | spec/spec_helper.rb |
rom-0.6.0.rc1 | spec/spec_helper.rb |
rom-0.6.0.beta3 | spec/spec_helper.rb |
rom-0.6.0.beta2 | spec/spec_helper.rb |
rom-0.6.0.beta1 | spec/spec_helper.rb |