Sha256: 3abd85b262c7eaa965bd8f6f12faffd99fc86af46a60bd6d924475f7e4a0c5fa
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'mongoid' require 'database_cleaner' require 'mongoid_search' Mongoid.configure do |config| name = "mongoid_search_test" config.master = Mongo::Connection.new.db(name) end Dir["#{File.dirname(__FILE__)}/models/*.rb"].each { |file| require file } DatabaseCleaner.orm = "mongoid" Spec::Runner.configure do |config| config.before(:all) do DatabaseCleaner.strategy = :truncation end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid_search-0.1.2 | spec/spec_helper.rb |
mongoid_search-0.1.1 | spec/spec_helper.rb |