Sha256: efcd795c81ea94e5cbeb5e7a0966bfebc115efadc3841a3943257d4fe3051fcb
Contents?: true
Size: 663 Bytes
Versions: 5
Compression:
Stored size: 663 Bytes
Contents
require 'simplecov' SimpleCov.start $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'mongoid' require 'database_cleaner' require 'fast_stemmer' require 'yaml' require 'mongoid_search' Mongoid.configure do |config| config.connect_to "mongoid_search_test" end Dir["#{File.dirname(__FILE__)}/models/*.rb"].each { |file| require file } DatabaseCleaner.orm = :mongoid RSpec.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
5 entries across 5 versions & 1 rubygems