bmabey/database_cleaner — pull request #149 by look (2012-09-10 20:54:59+00:00)
Title: Multiple database support for Mongoid 3

I implemented multiple database support as discussed in Pull Request #139. It is working for me.

To use:

DatabaseCleaner[:mongoid, {:connection => 'db_name'}].strategy = :truncation
DatabaseCleaner[:mongoid, {:connection => 'db_name2'}].strategy = :truncation