X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1ea64ea977b08e5393d469707e268aee260acd2f..98184dfb9cacc74ac5bcb91a41a2d5804b3f4f7d:/test/functional/oauth_controller_test.rb diff --git a/test/functional/oauth_controller_test.rb b/test/functional/oauth_controller_test.rb deleted file mode 100644 index 85358892e..000000000 --- a/test/functional/oauth_controller_test.rb +++ /dev/null @@ -1,48 +0,0 @@ -require File.dirname(__FILE__) + '/../test_helper' - -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" } - ) - assert_routing( - { :path => "/oauth/token", :method => :get }, - { :controller => "oauth", :action => "token" } - ) - assert_routing( - { :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" } - ) - end -end