Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactors test code for expressiveness

  • Loading branch information...
commit 64fe87ead8f2c2f2230953ae6ea765f4c4375337 1 parent 764b57f
Thiago Arrais authored mojodna committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/test_action_controller_request_proxy.rb
View
3  test/test_action_controller_request_proxy.rb
@@ -5,9 +5,10 @@
class ActionControllerRequestProxyTest < Test::Unit::TestCase
- def request_proxy(parameters)
+ def request_proxy(parameters={})
request = ActionController::TestRequest.new({}, parameters)
request.env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'
+ yield request if block_given?
OAuth::RequestProxy.proxy(request)
end
Please sign in to comment.
Something went wrong with that request. Please try again.