Configuring database_cleaner with Rails, RSpec, Capybara, and Selenium Skip to entry content If you write Rails code, or any Ruby code that interacts with a database, and you also write automated tests, chances are you have heard of or used the database_cleaner gem. It’s a terrific gem that abstracts away the various ORM APIs for getting the DB into a “blank slate” state. Periodically I start a ne
![Configuring database_cleaner with Rails, RSpec, Capybara, and Selenium - avdi.codes](https://cdn-ak-scissors.b.st-hatena.com/image/square/c8b482cd2793bec66a4488d9b190ae409ffd9a1c/height=288;version=1;width=512/https%3A%2F%2Favdi.codes%2Fwp-content%2Fuploads%2F2019%2F06%2Fcropped-favicon-extraced-from-linda-kerr-loga.png)