提交 e0c6bce2 编写于 作者: E eileencodes

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.
上级 c932850e
......@@ -20,6 +20,7 @@ class MyApp < Rails::Application
config.active_support.deprecation = :log
config.eager_load = false
config.hosts << proc { true }
config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33"
end
Rails.application.initialize!
......
......@@ -10,6 +10,7 @@ class Base
class InfoControllerTest < ActionController::TestCase
tests Rails::InfoController
Rails.application.config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33"
def setup
Rails.application.routes.draw do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册