Permalink
Browse files

fix for 1.9 kwargs syntax

  • Loading branch information...
1 parent 1ae9f05 commit 993ca82d709190e47a9a0bc4bda3d16fb85593fe @tenderlove tenderlove committed Jul 16, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/abstract_unit.rb
View
3 actionpack/test/abstract_unit.rb
@@ -316,7 +316,8 @@ def send_request(uri_or_host, method, path)
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

0 comments on commit 993ca82

Please sign in to comment.