X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b12598112afafda656a25f46749f3d3156c2fc87..4f05b6a8accae4877f81e617262a52cf0428cf8f:/test/functional/oauth_controller_test.rb diff --git a/test/functional/oauth_controller_test.rb b/test/functional/oauth_controller_test.rb index d0ac28d0a..85358892e 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" } @@ -20,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" }