ENV["RAILS_ENV"] = "test"

require 'rails_app/config/environment'

include Rack::Test::Methods

def app
  Rails.application
end

RSpec.configure do |config|
  config.after { clear_cookies }
end

ENV["RAILS_ENV"] = "test"

require 'rails_app/config/environment'

include Rack::Test::Methods

def app
  Rails.application
end

RSpec.configure do |config|
  config.after do
    clear_cookies
    Mingo.collection.remove
  end
end

Remove all documents from the Mingo collection (but leave any indexes) after each spec run.
Remove all documents from the Mingo collection (but leave any indexes) after each spec run.
