提交 ea7620dc 编写于 作者: Y Yves Senn

Merge pull request #11448 from arunagw/updated_middleware_test

No need to add config for x_sendfile_header
......@@ -19,7 +19,7 @@ def app
end
test "default middleware stack" do
add_to_config "config.action_dispatch.x_sendfile_header = 'X-Sendfile'"
add_to_config "config.active_record.migration_error = :page_load"
boot!
......@@ -37,6 +37,7 @@ def app
"ActionDispatch::RemoteIp",
"ActionDispatch::Reloader",
"ActionDispatch::Callbacks",
"ActiveRecord::Migration::CheckPending",
"ActiveRecord::ConnectionAdapters::ConnectionManagement",
"ActiveRecord::QueryCache",
"ActionDispatch::Cookies",
......@@ -90,6 +91,7 @@ def app
boot!
assert !middleware.include?("ActiveRecord::ConnectionAdapters::ConnectionManagement")
assert !middleware.include?("ActiveRecord::QueryCache")
assert !middleware.include?("ActiveRecord::Migration::CheckPending")
end
test "removes lock if cache classes is set" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册