diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-14 17:54:41 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-14 17:54:41 -0600 |
commit | 5f8e48cbd297aca4add4b48efa2136ba6ac851b1 (patch) | |
tree | 939c7670965015dc0721967204d2c533f597ae46 /actionpack/test | |
parent | ce970a8bb9f124d19d28270b1ffc8c4532bbbcc1 (diff) | |
download | rails-5f8e48cbd297aca4add4b48efa2136ba6ac851b1.tar.gz rails-5f8e48cbd297aca4add4b48efa2136ba6ac851b1.tar.bz2 rails-5f8e48cbd297aca4add4b48efa2136ba6ac851b1.zip |
Move route reloading into railties
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/dispatcher_test.rb | 13 |
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 } |