Permalink
Browse files

Ensure route set is cleared on teardown

  • Loading branch information...
josh committed Dec 5, 2008
1 parent 148aff2 commit 27ebfd795ff106efae8cbe318d7b15b1a3c63b13
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/caching_test.rb
@@ -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

0 comments on commit 27ebfd7

Please sign in to comment.