Sha256: 2c0f8347505ad70b0de751bd03f74ffe6e546e3116f8661a9445e2dfc21ae9bd
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
# encoding: utf-8 require 'bundler' Bundler.setup if RUBY_ENGINE == 'rbx' require "codeclimate-test-reporter" CodeClimate::TestReporter.start end require 'rom-yesql' # FIXME: why do we need to require it manually?? require 'sequel/adapters/sqlite' unless RUBY_ENGINE == 'jruby' require 'inflecto' require 'logger' begin require 'byebug' rescue LoadError end LOGGER = Logger.new(File.open('./log/test.log', 'a')) root = Pathname(__FILE__).dirname 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 added_constants = Object.constants - @constants added_constants.each { |name| Object.send(:remove_const, name) } end end ROM.use :auto_registration
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-yesql-0.2.0 | spec/spec_helper.rb |