mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
Do not hard code test connection names in database cleaner
This commit is contained in:
parent
5260f9e586
commit
1889345205
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
db_connection_names = ActiveRecord::Base.configurations.keys.grep(/test/).map(&:to_sym)
|
db_connection_names = ActiveRecord::Base.configurations.keys.grep(/test/).map(&:to_sym).reverse
|
||||||
|
|
||||||
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