Sha256: 3bf58a103e92299acc2f9632b95a2af718b8f7a35933823eda22e3b6cc1f463a
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
require 'coveralls' Coveralls.wear! $LOAD_PATH.push File.expand_path('../../lib', __FILE__) require 'active_support/all' require 'mongoid' require 'request_store' # Undefine RequestStore so that it may be stubbed in specific tests RequestStoreTemp = RequestStore Object.send(:remove_const, :RequestStore) Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } require 'mongoid/history' RSpec.configure do |config| config.raise_errors_for_deprecations! config.before :all do Mongoid.logger.level = Logger::INFO Mongo::Logger.logger.level = Logger::INFO if Mongoid::Compatibility::Version.mongoid5_or_newer? Mongoid.belongs_to_required_by_default = false if Mongoid::Compatibility::Version.mongoid6? end config.before :each do Mongoid::History.reset! end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-history-0.8.3 | spec/spec_helper.rb |
mongoid-history-0.8.2 | spec/spec_helper.rb |
mongoid-history-0.8.1 | spec/spec_helper.rb |