mirror of
https://github.com/internetee/registry.git
synced 2025-07-12 22:18:22 +02:00
Do not hard code test connection names in database cleaner
This commit is contained in:
parent
ede2710942
commit
66b7366ff2
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
db_connection_names = %i(test whois_test api_log_test registrant_write_test)
|
db_connection_names = ActiveRecord::Base.configurations.keys.grep(/test/).map(&:to_sym)
|
||||||
|
|
||||||
config.before :suite do
|
config.before :suite do
|
||||||
DatabaseCleaner.strategy = :truncation
|
DatabaseCleaner.strategy = :truncation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue