diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-02 15:29:18 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-02 15:29:18 -0500 |
commit | f32cf44870549c6cc5b6e6c84cffc1facf6ec38e (patch) | |
tree | 320e7398d1e6e4f3f372cd2ee90d1e2560459f10 /actionpack/lib/action_controller/dispatch | |
parent | a8b75c480fc9774252f5976dcf1a614079822e56 (diff) | |
download | rails-f32cf44870549c6cc5b6e6c84cffc1facf6ec38e.tar.gz rails-f32cf44870549c6cc5b6e6c84cffc1facf6ec38e.tar.bz2 rails-f32cf44870549c6cc5b6e6c84cffc1facf6ec38e.zip |
Switch functional tests to run through the rack interface instead of process
Diffstat (limited to 'actionpack/lib/action_controller/dispatch')
-rw-r--r-- | actionpack/lib/action_controller/dispatch/dispatcher.rb | 2 | ||||
-rw-r--r-- | actionpack/lib/action_controller/dispatch/rescue.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/dispatch/dispatcher.rb b/actionpack/lib/action_controller/dispatch/dispatcher.rb index bb9d8bd063..25844bf2a2 100644 --- a/actionpack/lib/action_controller/dispatch/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatch/dispatcher.rb @@ -80,7 +80,7 @@ module ActionController Routing::Routes.call(env) rescue Exception => exception if controller ||= (::ApplicationController rescue Base) - controller.call_with_exception(env, exception).to_a + controller.call_with_exception(env, exception) else raise exception end diff --git a/actionpack/lib/action_controller/dispatch/rescue.rb b/actionpack/lib/action_controller/dispatch/rescue.rb index df80ac0909..2f3b40c231 100644 --- a/actionpack/lib/action_controller/dispatch/rescue.rb +++ b/actionpack/lib/action_controller/dispatch/rescue.rb @@ -62,7 +62,7 @@ module ActionController #:nodoc: def call_with_exception(env, exception) #:nodoc: request = env["action_controller.rescue.request"] ||= ActionDispatch::Request.new(env) response = env["action_controller.rescue.response"] ||= ActionDispatch::Response.new - new.process(request, response, :rescue_action, exception) + new.process(request, response, :rescue_action, exception).to_a end end |