Sha256: 0ec9074ce8e003c952440648083cde3694e3228fc5c07ef209661fd519ac5120
Contents?: true
Size: 607 Bytes
Versions: 7
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true # https://github.com/DatabaseCleaner/database_cleaner # https://medium.com/brief-stops/testing-with-rspec-factorygirl-faker-and-database-cleaner-651c71ca0688 # Flush the database during tests to keep test data from clustering or hitting other tests require 'capybara/minitest' require 'database_cleaner' if defined?(DatabaseCleaner) DatabaseCleaner.clean_with :truncation DatabaseCleaner.strategy = :transaction class ActionDispatch::IntegrationTest include DatabaseCleanerSupport end class ActiveSupport::TestCase include DatabaseCleanerSupport end end
Version data entries
7 entries across 7 versions & 1 rubygems