diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index a427bd5191..cdf09d41eb 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -316,7 +316,8 @@ module ActionDispatch routes.call(params) end - def request_path_params(path, method: 'GET') + def request_path_params(path, method:) + method ||= 'GET' resp = send_request URI('http://localhost' + path), method.to_s.upcase, nil status = resp.first if status == 404