on-internet
← Community

How to use in-memory MongoDB with Rails, Mongoid, and Rspec?

Stack Overflow ·

On unit or integration testing, I need to be able to use in-memory mongoDB just for convenience. Am I able to do that? I tried searching for solution and there is no tutorial in how to write mongoid.yml to use in-memory. Other than that, can I just use default env inside mongoid.yml rather than writing duplicates for both development and production? It is like moving from development: client: ... production: client: ... into default: &default client: ...

Comments

Sign in or sign up to comment and upvote.

No comments yet.