Allow GET as well as POST for oauth#request_token and oauth#access_token

This commit is contained in:
Tom Hughes 2013-09-23 13:47:05 +01:00
parent 5052ecab7c
commit 038c341918
2 changed files with 10 additions and 2 deletions

View file

@ -28,10 +28,18 @@ class OauthControllerTest < ActionController::TestCase
{ :path => "/oauth/request_token", :method => :get },
{ :controller => "oauth", :action => "request_token" }
)
assert_routing(
{ :path => "/oauth/request_token", :method => :post },
{ :controller => "oauth", :action => "request_token" }
)
assert_routing(
{ :path => "/oauth/access_token", :method => :get },
{ :controller => "oauth", :action => "access_token" }
)
assert_routing(
{ :path => "/oauth/access_token", :method => :post },
{ :controller => "oauth", :action => "access_token" }
)
assert_routing(
{ :path => "/oauth/test_request", :method => :get },
{ :controller => "oauth", :action => "test_request" }