# -*- encoding : utf-8 -*- require 'rubygems' $:.push File.expand_path('../../lib', __FILE__) require 'active_support/all' require 'mongoid' require 'mongoid_find_by' Mongoid.configure do |config| config.connect_to( 'mongoid_find_by_test' ) end Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |f| require f end RSpec.configure do |config| config.mock_with :rspec config.after :suite do Mongoid.purge! end end