提交 2c86fa21 编写于 作者: A Arun Agrawal

Testing CheckPending middleware

上级 2d31df49
......@@ -69,6 +69,14 @@ def app
assert_equal "Rack::Cache", middleware.first
end
test "ActiveRecord::Migration::CheckPending is present when active_record.migration_error is set to :page_load" do
add_to_config "config.active_record.migration_error = :page_load"
boot!
assert middleware.include?("ActiveRecord::Migration::CheckPending")
end
test "ActionDispatch::SSL is present when force_ssl is set" do
add_to_config "config.force_ssl = true"
boot!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册