Alloe GET as well as POST for oauth#revoke and oauth#authorize

This commit is contained in:
Tom Hughes 2013-09-22 18:33:26 +01:00
parent c962b8acfc
commit 3b34f700f1
2 changed files with 10 additions and 2 deletions

View file

@ -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" }