MongoMapper.account_database 'development' Spec::Runner.configure do |config| config.before(:each) do dbs = [MongoMapper.current_global_database] dbs << MongoMapper.current_account_database unless MongoMapper.current_account_database.blank? dbs.each do |db| db.collection_names.each do |name| db.collection(name).drop end end end end