spec/spec_helper.rb in mongoid_search-0.1.2 vs spec/spec_helper.rb in mongoid_search-0.2.0
- old
+ new
@@ -1,20 +1,22 @@
$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"
+DatabaseCleaner.orm = :mongoid
-Spec::Runner.configure do |config|
+RSpec.configure do |config|
config.before(:all) do
DatabaseCleaner.strategy = :truncation
end
config.before(:each) do