From b47c76b1dfaaf1d99413b94179077cd58552ba88 Mon Sep 17 00:00:00 2001 From: Eloy Duran Date: Mon, 13 Oct 2008 16:08:41 +0200 Subject: Make sure named routes with parameters can be used in tests before a request has been done. [#1208 state:resolved] Signed-off-by: Pratik Naik --- actionpack/lib/action_controller/test_case.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 6a39039504..4fc60f0697 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -134,6 +134,9 @@ module ActionController @controller = self.class.controller_class.new @controller.request = @request = TestRequest.new @response = TestResponse.new + + @controller.params = {} + @controller.send(:initialize_current_url) end # Cause the action to be rescued according to the regular rules for rescue_action when the visitor is not local -- cgit v1.2.3