How would go about writing proper unit testing (and integration testing for that matter) using MongoDB through Mongoid on Rails ?
I am asking, because to the opposite of
This one worked for me.
In spec_helper.rb, under RSpec.configure do |config| I put:
spec_helper.rb
RSpec.configure do |config|
config.before :each do Mongoid.purge! end
Reference.