diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index a65caba89..9a1b7e7f5 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -1,5 +1,5 @@ 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 DatabaseCleaner.strategy = :truncation