Sha256: 812f5d0cfab0e9ccafac960f327edbb064277f8730f4dc84f7f1e3ff8210f337
Contents?: true
Size: 611 Bytes
Versions: 15
Compression:
Stored size: 611 Bytes
Contents
require_relative "spec_helper" <%= config[:camel_cased_app_name] %>::Container.boot! :rom Dir[SPEC_ROOT.join("support/db/*.rb").to_s].each(&method(:require)) Dir[SPEC_ROOT.join("shared/db/*.rb").to_s].each(&method(:require)) require "database_cleaner" DatabaseCleaner[:sequel, connection: TestHelpers.db_connection].strategy = :truncation RSpec.configure do |config| config.include TestHelpers config.include TestFactories config.before :suite do DatabaseCleaner.clean_with :truncation end config.around :each do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
15 entries across 12 versions & 1 rubygems