# frozen_string_literal: true require 'database_cleaner/active_record' RSpec.configure do |config| # Database Cleaner setup config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around do |example| DatabaseCleaner.cleaning do example.run end end end