提交 27ebfd79 编写于 作者: J Joshua Peek

Ensure route set is cleared on teardown

上级 148aff20
......@@ -67,7 +67,7 @@ def setup
def teardown
FileUtils.rm_rf(File.dirname(FILE_STORE_PATH))
ActionController::Routing::Routes.clear!
ActionController::Base.perform_caching = false
end
......@@ -401,7 +401,7 @@ def test_forbidden_is_not_cached
def test_xml_version_of_resource_is_treated_as_different_cache
with_routing do |set|
ActionController::Routing::Routes.draw do |map|
set.draw do |map|
map.connect ':controller/:action.:format'
map.connect ':controller/:action'
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册