diff options
author | eileencodes <eileencodes@gmail.com> | 2019-03-13 16:41:29 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2019-03-13 16:41:29 -0400 |
commit | e0c6bce203237592ddd5ae5e227b463322f28c20 (patch) | |
tree | fa34b3f40ed3a913b5afc95b8583ee64293dc569 /railties/test | |
parent | c932850ef27ce2f42e886ca9dfd54f0d4b1518b3 (diff) | |
download | rails-e0c6bce203237592ddd5ae5e227b463322f28c20.tar.gz rails-e0c6bce203237592ddd5ae5e227b463322f28c20.tar.bz2 rails-e0c6bce203237592ddd5ae5e227b463322f28c20.zip |
Fix secret_key_base for Railties
This was missed in the security fix for local dev. CI doesn't have a tmp
directory in the apps built for testing so these end up failing. This
adds the secret_key_base so we don't need to generate one.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/url_generation_test.rb | 1 | ||||
-rw-r--r-- | railties/test/rails_info_controller_test.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/url_generation_test.rb b/railties/test/application/url_generation_test.rb index 6bcc0b0acb..dc737089f6 100644 --- a/railties/test/application/url_generation_test.rb +++ b/railties/test/application/url_generation_test.rb @@ -20,6 +20,7 @@ module ApplicationTests config.active_support.deprecation = :log config.eager_load = false config.hosts << proc { true } + config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33" end Rails.application.initialize! diff --git a/railties/test/rails_info_controller_test.rb b/railties/test/rails_info_controller_test.rb index 878a238f8d..185a2f9f09 100644 --- a/railties/test/rails_info_controller_test.rb +++ b/railties/test/rails_info_controller_test.rb @@ -10,6 +10,7 @@ end class InfoControllerTest < ActionController::TestCase tests Rails::InfoController + Rails.application.config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33" def setup Rails.application.routes.draw do |