Allow GET as well as POST for oauth#request_token and oauth#access_token
This commit is contained in:
parent
5052ecab7c
commit
038c341918
2 changed files with 10 additions and 2 deletions
|
@ -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" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue