Sha256: d2cf23ad5a2313fc9df5f08ff35ac81d170bfc1f68454de3fef4e6a07d50970d

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 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 }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_fulltext-0.3.6 spec/spec_helper.rb