aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_case.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r--actionpack/lib/action_controller/test_case.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index 9c73aba22a..480297368f 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -497,13 +497,10 @@ module ActionController
build_request_uri(action, parameters)
@controller.class.class_eval { include Testing }
- @controller.extend(Module.new {
- def set_response!(request)
- end
- })
-
@controller.recycle!
- @controller.process_with_new_base_test(@request, @response)
+ name = @request.parameters[:action]
+ @controller.process(name)
+
@assigns = @controller.respond_to?(:view_assigns) ? @controller.view_assigns : {}
@request.session.delete('flash') if @request.session['flash'].blank?
@response