Sha256: cbd37f1b064148d61d95051d8eb7e02511a64191495b8a56bf63436d5774d9e5
Contents?: true
Size: 596 Bytes
Versions: 2
Compression:
Stored size: 596 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'rspec' require 'mongoid' ENV['MONGOID_ENV'] = 'test' require File.expand_path('../../lib/mongoid_fulltext', __FILE__) Dir["#{File.dirname(__FILE__)}/models/**/*.rb"].each { |f| require f } Mongoid.configure do |config| config.connect_to('mongoid_fulltext_test') end RSpec.configure do |c| c.before :each do Mongoid.purge! end c.after :all do Mongoid.purge! end c.before :all do Mongoid.logger.level = Logger::INFO Mongo::Logger.logger.level = Logger::INFO if Mongoid::Compatibility::Version.mongoid5? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid_fulltext-0.7.1 | spec/spec_helper.rb |
mongoid_fulltext-0.7.0 | spec/spec_helper.rb |