]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/oauth_controller_test.rb
Alloe GET as well as POST for oauth#revoke and oauth#authorize
[rails.git] / test / functional / oauth_controller_test.rb
index d0ac28d0a99e109ed1957235c9d89e915c019928..42f3c3c9915fd141377d816206670bbebaae4345 100644 (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" }