Sha256: 3709cc8e92999b5a405adfc463a1bf093e7e02762fdc2ccae6e238bdef4235d5
Contents?: true
Size: 487 Bytes
Versions: 10
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' require 'engine_cart' EngineCart.load_application! require 'rspec/rails' ActiveJob::Base.queue_adapter = :test require 'database_cleaner' RSpec.configure do |config| config.before do |example| if example.metadata[:db_clean] DatabaseCleaner.clean_with(:truncation) DatabaseCleaner.strategy = :truncation end end config.after do |example| DatabaseCleaner.clean if example.metadata[:db_clean] end end
Version data entries
10 entries across 10 versions & 1 rubygems