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