Sha256: e19bd85fb27c55276fbda4d1398e2136ebd92bdeb44c3fcd324c7ca241cdb6af
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
require 'database_cleaner' RSpec.configure do |config| config.before(:suite) do ActiveRecord::Base.establish_connection( adapter: "postgresql", database: ENV["POSTGRES_DB_DATABASE"] || "migration_lock_timeout_test", username: ENV['POSTGRES_DB_USERNAME'], password: ENV['POSTGRES_DB_PASSWORD'], host: 'localhost' ) DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around(:each) do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
migration-lock-timeout-1.0.0 | spec_helper.rb |