Sha256: eef08958e0efd310eecf3738e25ef368de7d6aed2017bc3771bcbf45fa074e8b
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 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 config.include ErrorHelpers end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-history-0.8.5 | spec/spec_helper.rb |