aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-07-27 17:25:42 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-07-27 17:26:42 +0900
commit121551b80a89d3c5c74e235e0978e44c351a7935 (patch)
treead4d693d92cffd95b3032f2e294781587c3c48a8
parentd1ffe59ab5fd6e811833c127d43b32e87b5d7131 (diff)
downloadrails-121551b80a89d3c5c74e235e0978e44c351a7935.tar.gz
rails-121551b80a89d3c5c74e235e0978e44c351a7935.tar.bz2
rails-121551b80a89d3c5c74e235e0978e44c351a7935.zip
Avoid to use a method that acts on the hash
To avoid a deprecation warning.
-rw-r--r--activerecord/test/cases/database_configurations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/database_configurations_test.rb b/activerecord/test/cases/database_configurations_test.rb
index 725d1b5d1b..714b9d75c5 100644
--- a/activerecord/test/cases/database_configurations_test.rb
+++ b/activerecord/test/cases/database_configurations_test.rb
@@ -89,7 +89,7 @@ class LegacyDatabaseConfigurationsTest < ActiveRecord::TestCase
end
def test_first_is_deprecated
- first_config = ActiveRecord::Base.configurations.values.first
+ first_config = ActiveRecord::Base.configurations.configurations.map(&:config).first
assert_deprecated do
env_name, config = ActiveRecord::Base.configurations.first
assert_equal "arunit", env_name