From 7880f39e1d82cd4faf3dc61928c22b385ced3d50 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 15 Jul 2014 18:43:47 -0700 Subject: [PATCH] Fix 1.9. uggghhhhhh get it together @tenderlove :bomb: --- actionpack/test/abstract_unit.rb | 4 ++-- 1 file 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