Sha256: cafb22157219a85a8231cba2e5a2f04e3628cad3fb06482006c2fafc67d69481
Contents?: true
Size: 589 Bytes
Versions: 12
Compression:
Stored size: 589 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: Test::DatabaseHelpers.db].strategy = :truncation RSpec.configure do |config| config.include Test::DatabaseHelpers 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
12 entries across 12 versions & 2 rubygems