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/test_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/test_test.rb')
-rw-r--r-- | actionpack/test/controller/test_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb index 9e88188b9a..84c97851ee 100644 --- a/actionpack/test/controller/test_test.rb +++ b/actionpack/test/controller/test_test.rb @@ -123,15 +123,11 @@ XML @controller = TestController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new + ActionController::Routing.use_controllers! %w(content admin/user test_test/test) ActionController::Routing::Routes.load_routes! end - def teardown - super - ActionController::Routing::Routes.reload - end - def test_raw_post_handling params = {:page => {:name => 'page name'}, 'some key' => 123} post :render_raw_post, params.dup |