Sha256: c3ca0aeaaa75ce4bb8d74c639cb835d2c9b4e34180c7f66ab48d6d76f5e25615
Contents?: true
Size: 516 Bytes
Versions: 5
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true # Require this to support automatically cleaning the database when testing require "database_cleaner" RSpec.configure do |config| # Clean the database before running tests. Setup as per # https://github.com/DatabaseCleaner/database_cleaner#rspec-example config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around(:each) do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
5 entries across 5 versions & 1 rubygems