Commit 1d4458a4 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'fix_load_balancing_spec_rails_deprecation' into 'master'

Fix default_hash deprecation in spec

See merge request gitlab-org/gitlab!63949
parents d398e8a7 39946572
......@@ -394,7 +394,7 @@ RSpec.describe Gitlab::Database::LoadBalancing do
end
shared_context 'LoadBalancing setup' do
let(:development_db_config) { ActiveRecord::Base.configurations.default_hash("development").with_indifferent_access }
let(:development_db_config) { ActiveRecord::Base.configurations.configs_for(env_name: 'development').first.configuration_hash }
let(:hosts) { [development_db_config[:host]] }
let(:model) do
Class.new(ApplicationRecord) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment