diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-09-26 08:17:16 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-09-26 08:17:16 +0900 |
commit | b658743ac2a69d196d283e780816f5ad4a305753 (patch) | |
tree | a6b384d418956f6550dbb5d3591753b754ff5fb5 /activerecord/test/cases/connection_adapters | |
parent | eb8df3f7b19e6a7149c23eee73e6b197ba8b330e (diff) | |
download | rails-b658743ac2a69d196d283e780816f5ad4a305753.tar.gz rails-b658743ac2a69d196d283e780816f5ad4a305753.tar.bz2 rails-b658743ac2a69d196d283e780816f5ad4a305753.zip |
Fix "warning: shadowing outer local variable - config"
Diffstat (limited to 'activerecord/test/cases/connection_adapters')
-rw-r--r-- | activerecord/test/cases/connection_adapters/connection_handler_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/connection_adapters/connection_handler_test.rb b/activerecord/test/cases/connection_adapters/connection_handler_test.rb index 6e11b4bb87..5e3447efde 100644 --- a/activerecord/test/cases/connection_adapters/connection_handler_test.rb +++ b/activerecord/test/cases/connection_adapters/connection_handler_test.rb @@ -168,8 +168,8 @@ module ActiveRecord }, } ActiveRecord::Base.configurations = config - ActiveRecord::Base.configurations.configs_for.each do |config| - assert_instance_of ActiveRecord::DatabaseConfigurations::HashConfig, config + ActiveRecord::Base.configurations.configs_for.each do |db_config| + assert_instance_of ActiveRecord::DatabaseConfigurations::HashConfig, db_config end ensure ActiveRecord::Base.configurations = @prev_configs |