aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index dc022cbde3..06b12a524f 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -57,8 +57,8 @@ module ActionController
def setup_controller_request_and_response
@controller = self.class.controller_class.new
- @request = TestRequest.new
- @response = TestResponse.new
+ @controller.request = @request = TestRequest.new
+ @response = TestResponse.new
end
end
end