New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action Controller support for PUT requests #181
Conversation
It surprises me that DELETE is not also generically supported? We appear to not require it, but... |
There was already test coverage for PUT that was IMHO wrong, I simply fixed it so I am not expecting the code coverage to change. |
@@ -72,6 +72,10 @@ def parameters_for_signature | |||
reject { |kv| kv[0] == 'oauth_signature'} | |||
end | |||
|
|||
def raw_post_signature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this should be raw_post_signature?
with a ?
for convention (it returns a boolean). Minor nitpick though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, fixed!
@@ -109,7 +109,7 @@ def test_that_proxy_simple_post_request_works_with_mixed_params | |||
def test_that_proxy_simple_put_request_works_with_mixed_params | |||
request_proxy = request_proxy(:put, {'key'=>'value'}, {'key2'=>'value2'}) | |||
|
|||
expected_parameters = [["key", "value"]] | |||
expected_parameters = [["key", "value"],["key2", "value2"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I see what you mean, the original test looks wrong and this fixes it. LGTM.
Most of the other request proxies support PUT requests and we need this gem to also support it for Action Controller. This addresses issue #180 It includes the modified Action Controller proxy and fixes the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Most of the other request proxies support PUT
requests and we need this gem to also support it
for Action Controller. This addresses issue #180
It includes the modified Action Controller proxy
and fixes the tests.