When I run my rspec tests, many fail due to stale data in my mongodbdatabase. AFAIK it is far better to test with a clean database. With mysql, I could run rake db:test:prepare to clean up the database. How can I clean nd/or re-seed the database before each test?
Ask questions and share your thoughts on the future of Stack Overflow. Join our first live community AMA this Wednesday, February 26th, at 3 PM ET. Learn more