aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-15 18:20:27 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-15 18:20:50 -0700
commit993ca82d709190e47a9a0bc4bda3d16fb85593fe (patch)
tree62e3ce4ed7d0d5e4e39c9f3300a600231294470a /actionpack/test
parent1ae9f056c5ea5c588ebdf8adce03d35efd049139 (diff)
downloadrails-993ca82d709190e47a9a0bc4bda3d16fb85593fe.tar.gz
rails-993ca82d709190e47a9a0bc4bda3d16fb85593fe.tar.bz2
rails-993ca82d709190e47a9a0bc4bda3d16fb85593fe.zip
fix for 1.9 kwargs syntax
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract_unit.rb3
1 files changed, 2 insertions, 1 deletions
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