From 366e1e03df1b658c315b64686881de0d888b9a5a Mon Sep 17 00:00:00 2001 From: ecavazos Date: Fri, 13 Aug 2010 08:56:51 -0700 Subject: [PATCH] Instead of guessing the proxy type, switched the test to explicitly instantiate the class that needs to be tested --- test/test_action_controller_request_proxy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_action_controller_request_proxy.rb b/test/test_action_controller_request_proxy.rb index df056e90..cab8e528 100644 --- a/test/test_action_controller_request_proxy.rb +++ b/test/test_action_controller_request_proxy.rb @@ -5,6 +5,7 @@ require 'action_controller/test_process' class ActionControllerRequestProxyTest < Test::Unit::TestCase + def request_proxy(request_method = :get, uri_params = {}, body_params = {}) request = ActionController::TestRequest.new request.set_REQUEST_URI('/') @@ -22,7 +23,7 @@ def request_proxy(request_method = :get, uri_params = {}, body_params = {}) request.env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded' yield request if block_given? - OAuth::RequestProxy.proxy(request, :parameters => uri_params) + OAuth::RequestProxy::ActionControllerRequest.new(request, :parameters => uri_params) end def test_that_proxy_simple_get_request_works_with_query_params