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:
parent
1ae9f056c5
commit
993ca82d70
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue