Sha256: 5c47529e4e5503c3d9e2298729e447228c7b8ff385745ba2e28eaf26402183c1
Contents?: true
Size: 535 Bytes
Versions: 11
Compression:
Stored size: 535 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'mongoid' require 'mongoid-history' require 'database_cleaner' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :truncation end config.after(:each) do DatabaseCleaner.clean end end Mongoid.configure do |config| config.master = Mongo::Connection.new.db("mongoid-history") end
Version data entries
11 entries across 11 versions & 1 rubygems