Sha256: 3f573248bdbbf03e8b3459f6d664cacd2d4b3c7429e081dce9c94c358109c117
Contents?: true
Size: 597 Bytes
Versions: 11
Compression:
Stored size: 597 Bytes
Contents
require_relative "spec_helper" <%= config[:camel_cased_app_name] %>::Container.start :persistence 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
11 entries across 11 versions & 2 rubygems