aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorYoshiyuki Kinjo <yskkin@gmail.com>2018-03-31 21:47:04 +0900
committerYoshiyuki Kinjo <yskkin@gmail.com>2018-03-31 23:12:16 +0900
commit7419a4f911b2f8521db3ecfcd78148cf89ebd221 (patch)
tree33f46838a5e3362fcc6d2c176ead7ad5e6049d9b /railties/test
parent5616c08401ddfbb43d2281c86247027316c28117 (diff)
downloadrails-7419a4f911b2f8521db3ecfcd78148cf89ebd221.tar.gz
rails-7419a4f911b2f8521db3ecfcd78148cf89ebd221.tar.bz2
rails-7419a4f911b2f8521db3ecfcd78148cf89ebd221.zip
Deriving `secret_key_base` breaks `key_generator` defined in 5.1.
If one created Rails 5.1 app and then updated to 5.2, `secret_key_base` defined in `config/secrets.yml` is ignored for `development` and `test` environment. A change in `secret_key_base` in turn breaks `Rails.application.key_generator`. If one encrypt data in Rails 5.1, she cannot decrypt it in Rails 5.2 for `development` and `test` environment.
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/configuration_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index bd9b87467c..2f9b607b9d 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -576,6 +576,7 @@ module ApplicationTests
app "development"
assert_equal "3b7cd727ee24e8444053437c36cc66c3", app.secrets.secret_key_base
+ assert_equal "3b7cd727ee24e8444053437c36cc66c3", app.secret_key_base
end
test "secret_key_base is copied from config to secrets when not set" do