Sha256: 6a44ac36de45a15b672410760e0205ba5d122ef81d27770def1f2c2845128350
Contents?: true
Size: 687 Bytes
Versions: 4
Compression:
Stored size: 687 Bytes
Contents
# encoding: utf-8 require 'bundler' Bundler.setup if RUBY_ENGINE == 'rbx' require "codeclimate-test-reporter" CodeClimate::TestReporter.start end require 'rom-sql' require 'rom/sql/rake_task' # FIXME: why do we need to require it manually?? require 'sequel/adapters/postgres' require 'logger' 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-0.4.0 | spec/spec_helper.rb |
rom-sql-0.4.0.rc1 | spec/spec_helper.rb |
rom-sql-0.4.0.beta2 | spec/spec_helper.rb |
rom-sql-0.4.0.beta1 | spec/spec_helper.rb |