aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_case.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-10-16 22:20:32 +0200
committerPratik Naik <pratiknaik@gmail.com>2008-10-16 22:20:32 +0200
commit0242d817035e60357e559af0e9441a1f24a764e4 (patch)
tree1efa579fc261e55f76bacfa9818eb4a649d68294 /actionpack/lib/action_controller/test_case.rb
parent7e2777348b88bf096ebc51e364554af19d7bcc55 (diff)
parent9cb5400871b660e2c6d1654346650f07bb52a0c0 (diff)
downloadrails-0242d817035e60357e559af0e9441a1f24a764e4.tar.gz
rails-0242d817035e60357e559af0e9441a1f24a764e4.tar.bz2
rails-0242d817035e60357e559af0e9441a1f24a764e4.zip
Merge with mainstream rails
Diffstat (limited to 'actionpack/lib/action_controller/test_case.rb')
-rw-r--r--actionpack/lib/action_controller/test_case.rb3
1 files changed, 3 insertions, 0 deletions
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