]> git.openstreetmap.org Git - rails.git/blob - test/functional/oauth_controller_test.rb
Use counter caches to improve spam scoring
[rails.git] / test / functional / oauth_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class OauthControllerTest < ActionController::TestCase
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/oauth/revoke" },
9       { :controller => "oauth", :action => "revoke" }
10     )
11     assert_routing(
12       { :path => "/oauth/authorize" },
13       { :controller => "oauth", :action => "authorize" }
14     )
15     assert_routing(
16       { :path => "/oauth/token" },
17       { :controller => "oauth", :action => "token" }
18     )
19     assert_routing(
20       { :path => "/oauth/request_token" },
21       { :controller => "oauth", :action => "request_token" }
22     )
23     assert_routing(
24       { :path => "/oauth/access_token" },
25       { :controller => "oauth", :action => "access_token" }
26     )
27     assert_routing(
28       { :path => "/oauth/test_request" },
29       { :controller => "oauth", :action => "test_request" }
30     )
31   end
32 end