提交 81c56842 编写于 作者: N Neeraj Singh 提交者: José Valim

adding middleware test for RAILS_CACHE

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 974196b0
......@@ -83,6 +83,17 @@ def app
assert_equal "Rack::Config", middleware.second
end
test "RAILS_CACHE does not respond to middleware" do
add_to_config "config.cache_store = :memory_store"
boot!
assert_equal "Rack::Runtime", middleware.third
end
test "RAILS_CACHE does respond to middleware" do
boot!
assert_equal "Rack::Runtime", middleware.fourth
end
test "insert middleware before" do
add_to_config "config.middleware.insert_before ActionDispatch::Static, Rack::Config"
boot!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册