diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-15 18:43:47 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-15 18:43:47 -0700 |
commit | 7880f39e1d82cd4faf3dc61928c22b385ced3d50 (patch) | |
tree | bb1c28ce2a4fcb558101a4e96e93f7fd736142d4 /actionpack/test/abstract_unit.rb | |
parent | 993ca82d709190e47a9a0bc4bda3d16fb85593fe (diff) | |
download | rails-7880f39e1d82cd4faf3dc61928c22b385ced3d50.tar.gz rails-7880f39e1d82cd4faf3dc61928c22b385ced3d50.tar.bz2 rails-7880f39e1d82cd4faf3dc61928c22b385ced3d50.zip |
Fix 1.9. uggghhhhhh get it together @tenderlove :bomb:
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |