diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-10-05 22:25:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 22:25:53 +0900 |
commit | e1c60894bb9ac5586837022027325b3a30ac9eb2 (patch) | |
tree | 0b92a2bd7721f46e8c78975dd0738810115d9c0c | |
parent | 1ceaf7db5013a233bdc671b3f46583c4c1189fe1 (diff) | |
parent | 7e7a6a351c4845d8d92238147450b22fe87627f9 (diff) | |
download | rails-e1c60894bb9ac5586837022027325b3a30ac9eb2.tar.gz rails-e1c60894bb9ac5586837022027325b3a30ac9eb2.tar.bz2 rails-e1c60894bb9ac5586837022027325b3a30ac9eb2.zip |
Merge pull request #34092 from bogdanvlviv/follow-up-33968
Exercise stringify of database configurations
-rw-r--r-- | activerecord/test/cases/connection_adapters/connection_handler_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/connection_handler_test.rb b/activerecord/test/cases/connection_adapters/connection_handler_test.rb index 5e3447efde..51d0cc3d12 100644 --- a/activerecord/test/cases/connection_adapters/connection_handler_test.rb +++ b/activerecord/test/cases/connection_adapters/connection_handler_test.rb @@ -170,6 +170,11 @@ module ActiveRecord ActiveRecord::Base.configurations = config ActiveRecord::Base.configurations.configs_for.each do |db_config| assert_instance_of ActiveRecord::DatabaseConfigurations::HashConfig, db_config + assert_instance_of String, db_config.env_name + assert_instance_of String, db_config.spec_name + db_config.config.keys.each do |key| + assert_instance_of String, key + end end ensure ActiveRecord::Base.configurations = @prev_configs |