Sha256: a0231f5262157748c9e325fd18e88b120e26eb918c27512d2012d60bcd92043b
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
# encoding: utf-8 $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'database_cleaner' require 'mongoid' require 'mongoid-rspec' require 'mongoid_touch' RSpec.configure do |config| config.include Mongoid::Matchers 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_touch_test") end
Version data entries
5 entries across 5 versions & 1 rubygems