Sha256: 36fcf61e8ca4ad464bbf53f12369b7d6929a8bbdb2f41c0438aae7c43abb7a60

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rspec'

require 'mongoid'
require 'database_cleaner'

Mongoid.configure do |config|
  name = "mongoid_fulltext_test"
  config.master = Mongo::Connection.new.db(name)
end

require File.expand_path("../../lib/mongoid_fulltext", __FILE__)
Dir["#{File.dirname(__FILE__)}/models/**/*.rb"].each { |f| require f }

Rspec.configure do |c|
  c.before(:all)  { DatabaseCleaner.strategy = :truncation }
  c.before(:each) { DatabaseCleaner.clean }
  c.after(:all) { Mongoid.master.command({'repairDatabase' => 1}) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_fulltext-0.4.0 spec/spec_helper.rb