diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-07-27 17:25:42 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-07-27 17:26:42 +0900 |
commit | 121551b80a89d3c5c74e235e0978e44c351a7935 (patch) | |
tree | ad4d693d92cffd95b3032f2e294781587c3c48a8 | |
parent | d1ffe59ab5fd6e811833c127d43b32e87b5d7131 (diff) | |
download | rails-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.rb | 2 |
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 |