Skip to content

Commit

Permalink
Avoid to use a method that acts on the hash
Browse files Browse the repository at this point in the history
To avoid a deprecation warning.
  • Loading branch information
y-yagi committed Jul 27, 2019
1 parent d1ffe59 commit 121551b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/database_configurations_test.rb
Expand Up @@ -89,7 +89,7 @@ def test_each_is_deprecated
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
Expand Down

0 comments on commit 121551b

Please sign in to comment.