diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-08-16 21:14:26 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-08-16 21:14:26 -0500 |
commit | 24ad9ae3d228acdf9aa31cf28bfe6dfb0139c247 (patch) | |
tree | 8328606506d2db378a35905a0953b59b0e84cfdf /actionpack/test/controller/caching_test.rb | |
parent | ccf28d2499d1b4e2aba41291eb800e0e02120923 (diff) | |
download | rails-24ad9ae3d228acdf9aa31cf28bfe6dfb0139c247.tar.gz rails-24ad9ae3d228acdf9aa31cf28bfe6dfb0139c247.tar.bz2 rails-24ad9ae3d228acdf9aa31cf28bfe6dfb0139c247.zip |
Cleanup route reloading in tests. Prefer with_routing over using ActionController::Routing::Routes directly
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index f1c93e6b1e..82c790bc19 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -48,8 +48,6 @@ class PageCachingTest < ActionController::TestCase super ActionController::Base.perform_caching = true - ActionController::Routing::Routes.clear! - ActionController::Routing::Routes.draw do |map| map.main '', :controller => 'posts', :format => nil map.formatted_posts 'posts.:format', :controller => 'posts' @@ -72,7 +70,6 @@ class PageCachingTest < ActionController::TestCase def teardown FileUtils.rm_rf(File.dirname(FILE_STORE_PATH)) - ActionController::Routing::Routes.clear! ActionController::Base.perform_caching = false end |