aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/dispatcher_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-14 17:54:41 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-14 17:54:41 -0600
commit5f8e48cbd297aca4add4b48efa2136ba6ac851b1 (patch)
tree939c7670965015dc0721967204d2c533f597ae46 /actionpack/test/controller/dispatcher_test.rb
parentce970a8bb9f124d19d28270b1ffc8c4532bbbcc1 (diff)
downloadrails-5f8e48cbd297aca4add4b48efa2136ba6ac851b1.tar.gz
rails-5f8e48cbd297aca4add4b48efa2136ba6ac851b1.tar.bz2
rails-5f8e48cbd297aca4add4b48efa2136ba6ac851b1.zip
Move route reloading into railties
Diffstat (limited to 'actionpack/test/controller/dispatcher_test.rb')
-rw-r--r--actionpack/test/controller/dispatcher_test.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/actionpack/test/controller/dispatcher_test.rb b/actionpack/test/controller/dispatcher_test.rb
index 622d67287d..64f1ad7610 100644
--- a/actionpack/test/controller/dispatcher_test.rb
+++ b/actionpack/test/controller/dispatcher_test.rb
@@ -15,7 +15,6 @@ class DispatcherTest < Test::Unit::TestCase
ActionDispatch::Callbacks.reset_callbacks(:call)
ActionController::Routing::Routes.stubs(:call).returns([200, {}, 'response'])
- ActionController::Routing::Routes.stubs(:reload)
Dispatcher.stubs(:require_dependency)
end
@@ -28,18 +27,6 @@ class DispatcherTest < Test::Unit::TestCase
dispatch(false)
end
- def test_reloads_routes_before_dispatch_if_in_loading_mode
- ActionController::Routing::Routes.expects(:reload).once
- dispatch(false)
- end
-
- def test_leaves_dependencies_after_dispatch_if_not_in_loading_mode
- ActionController::Routing::Routes.expects(:reload).never
- ActiveSupport::Dependencies.expects(:clear).never
-
- dispatch
- end
-
def test_prepare_callbacks
a = b = c = nil
ActionDispatch::Callbacks.to_prepare { |*args| a = b = c = 1 }