Merge branch 'rspec' into remove-unused-db-connection

This commit is contained in:
Artur Beljajev 2017-04-12 20:01:22 +03:00
commit 23858de702

View file

@ -1,5 +1,5 @@
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
DatabaseCleaner.strategy = :truncation