aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/dispatcher_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-28 15:31:03 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-28 15:31:03 -0600
commit5d89605c11cc54acadfdd76ccd226d38989ec600 (patch)
tree07a06d5b9584d8ae98f32781517007eafccd5fad /actionpack/test/controller/dispatcher_test.rb
parent45dee3842d68359a189fe7c0729359bd5a905ea4 (diff)
downloadrails-5d89605c11cc54acadfdd76ccd226d38989ec600.tar.gz
rails-5d89605c11cc54acadfdd76ccd226d38989ec600.tar.bz2
rails-5d89605c11cc54acadfdd76ccd226d38989ec600.zip
Make router and controller classes better rack citizens
Diffstat (limited to 'actionpack/test/controller/dispatcher_test.rb')
-rw-r--r--actionpack/test/controller/dispatcher_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/test/controller/dispatcher_test.rb b/actionpack/test/controller/dispatcher_test.rb
index fd06b4ea99..da87d26146 100644
--- a/actionpack/test/controller/dispatcher_test.rb
+++ b/actionpack/test/controller/dispatcher_test.rb
@@ -96,9 +96,7 @@ class DispatcherTest < Test::Unit::TestCase
private
def dispatch(cache_classes = true)
- controller = mock()
- controller.stubs(:process).returns([200, {}, 'response'])
- ActionController::Routing::Routes.stubs(:recognize).returns(controller)
+ ActionController::Routing::RouteSet.any_instance.stubs(:call).returns([200, {}, 'response'])
Dispatcher.define_dispatcher_callbacks(cache_classes)
@dispatcher.call({})
end