Permalink
Browse files

push parameter instantiation to one method

  • Loading branch information...
1 parent 7ef6a27 commit 9669f6f7883787aa209207cab68b1069636aed9e @tenderlove tenderlove committed Jul 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_case.rb
View
2 actionpack/lib/action_controller/test_case.rb
@@ -457,6 +457,7 @@ def paramify_values(hash_or_array_or_value)
hash_or_array_or_value.map {|i| paramify_values(i)}
when Rack::Test::UploadedFile, ActionDispatch::Http::UploadedFile
hash_or_array_or_value
+ when nil then {}
else
hash_or_array_or_value.to_param
end
@@ -489,7 +490,6 @@ def process(action, http_method = 'GET', *args)
@request.env['REQUEST_METHOD'] = http_method
- parameters ||= {}
controller_class_name = @controller.class.anonymous? ?
"anonymous" :
@controller.class.name.underscore.sub(/_controller$/, '')

0 comments on commit 9669f6f

Please sign in to comment.