diff options
author | Isaac Sloan <isaac@isaacsloan.com> | 2016-10-28 21:53:29 -0600 |
---|---|---|
committer | Isaac Sloan <isaac@isaacsloan.com> | 2016-11-21 16:12:45 -0700 |
commit | 7102c6ce8984c82e0ea84b039f288f72c79dcf18 (patch) | |
tree | 30fb14995a96e55732992fbe4a0bf7eaa1bb259d /railties/test/application | |
parent | 1f2e896edb05467559b1df9653d350bda1ec75cb (diff) | |
download | rails-7102c6ce8984c82e0ea84b039f288f72c79dcf18.tar.gz rails-7102c6ce8984c82e0ea84b039f288f72c79dcf18.tar.bz2 rails-7102c6ce8984c82e0ea84b039f288f72c79dcf18.zip |
deep symbolize keys on secrets.yml
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index be84cd5027..7e3bd26212 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -636,6 +636,20 @@ module ApplicationTests end end + test "that nested keys are symbolized the same as parents for hashes more than one level deep" do + app_file "config/secrets.yml", <<-YAML + development: + smtp_settings: + address: "smtp.example.com" + user_name: "postmaster@example.com" + password: "697361616320736c6f616e2028656c6f7265737429" + YAML + + app "development" + + assert_equal "697361616320736c6f616e2028656c6f7265737429", app.secrets.smtp_settings[:password] + end + test "protect from forgery is the default in a new app" do make_basic_app |