X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c962b8acfc6c83830c54ea01f35446181817c8de..3b34f700f1af3cee87a591c5cecd897b5529dec0:/test/functional/oauth_controller_test.rb diff --git a/test/functional/oauth_controller_test.rb b/test/functional/oauth_controller_test.rb index d0ac28d0a..42f3c3c99 100644 --- a/test/functional/oauth_controller_test.rb +++ b/test/functional/oauth_controller_test.rb @@ -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" }