Database Cleaner is a set of strategies for cleaning your database in Ruby, primarily for testing purposes.
I have a feature spec with Capybara for a login page, and I am using FactoryGirl + DatabaseCleaner require 'rails_helper' …
ruby-on-rails rspec capybara factory-bot database-cleanerFrom all that I've read about Rails 5.1 new system specs my understanding was that Rails now handles database transactions internally. …
ruby-on-rails rspec ruby-on-rails-5 database-cleanerI have added the database_cleaner gem to my rails application in order to clean my database between specs. Here's …
ruby-on-rails rspec factory-bot guard database-cleaner