From cff3ecc2aef098fa1a0158f3d0fc01de37774e2d Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sat, 8 Mar 2008 12:56:41 +0000 Subject: Allow using named routes in ActionController::TestCase before any request has been made. Closes #11273 [alloy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8992 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/test_case.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/test_case.rb') 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 -- cgit v1.2.3