require 'mm_to_view_model' Bundler.require(:development) MongoMapper.database = "mm_to_view_model" MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017) RSpec.configure do |config| config.before(:each) do MongoMapper.database.collections.each { |collection| collection.remove }.collect(&:name) end end