Clear db with mongoid3
mongoid, mongoid3
Solution
Output of `rake -T`
rake db:drop # Drops all the collections for the database for the current Rails.env
..
rake db:mongoid:drop # Drops the database for the current Rails.env
rake db:mongoid:purge # Drop all collections except the system collections
..
rake db:purge # Drop all collections except the system collections
Problem
I like to perform a set up before each time I run a unit test and clear my mongo db, how do I do it with mongoid? I found some links about it while googling but nothing seemed to work.