1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix for 1.9 kwargs syntax

This commit is contained in:
Aaron Patterson 2014-07-15 18:20:27 -07:00
parent 1ae9f056c5
commit 993ca82d70

View file

@ -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