Alloe GET as well as POST for oauth#revoke and oauth#authorize
This commit is contained in:
parent
c962b8acfc
commit
3b34f700f1
2 changed files with 10 additions and 2 deletions
|
@ -4,10 +4,18 @@ class OauthControllerTest < ActionController::TestCase
|
|||
##
|
||||
# test all routes which lead to this controller
|
||||
def test_routes
|
||||
assert_routing(
|
||||
{ :path => "/oauth/revoke", :method => :get },
|
||||
{ :controller => "oauth", :action => "revoke" }
|
||||
)
|
||||
assert_routing(
|
||||
{ :path => "/oauth/revoke", :method => :post },
|
||||
{ :controller => "oauth", :action => "revoke" }
|
||||
)
|
||||
assert_routing(
|
||||
{ :path => "/oauth/authorize", :method => :get },
|
||||
{ :controller => "oauth", :action => "authorize" }
|
||||
)
|
||||
assert_routing(
|
||||
{ :path => "/oauth/authorize", :method => :post },
|
||||
{ :controller => "oauth", :action => "authorize" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue