Sha256: 2ff5ebf76739a50ec55d7fb0ed66b0a15bbfc2b58b516dafc8db5bd35cc1e41d
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 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| 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid_search-0.2.8 | spec/spec_helper.rb |
mongoid_search-0.2.7 | spec/spec_helper.rb |