diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 81c7dfa3b24daf183109b720557e7772e1722a2c..b43bb9dc1750069d90ef8d98974864e49ca7fd6f 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -459,16 +459,16 @@ def process(action, *args) parameters = nil end - if parameters.present? || session.present? || flash.present? + if parameters || session || flash non_kwarg_request_warning end end - if body.present? + if body @request.set_header 'RAW_POST_DATA', body end - if http_method.present? + if http_method http_method = http_method.to_s.upcase else http_method = "GET" @@ -476,7 +476,7 @@ def process(action, *args) parameters ||= {} - if format.present? + if format parameters[:format] = format end