3 class OauthControllerTest < ActionController::TestCase
5 # test all routes which lead to this controller
8 { :path => "/oauth/revoke", :method => :get },
9 { :controller => "oauth", :action => "revoke" }
12 { :path => "/oauth/revoke", :method => :post },
13 { :controller => "oauth", :action => "revoke" }
16 { :path => "/oauth/authorize", :method => :get },
17 { :controller => "oauth", :action => "authorize" }
20 { :path => "/oauth/authorize", :method => :post },
21 { :controller => "oauth", :action => "authorize" }
24 { :path => "/oauth/token", :method => :get },
25 { :controller => "oauth", :action => "token" }
28 { :path => "/oauth/request_token", :method => :get },
29 { :controller => "oauth", :action => "request_token" }
32 { :path => "/oauth/request_token", :method => :post },
33 { :controller => "oauth", :action => "request_token" }
36 { :path => "/oauth/access_token", :method => :get },
37 { :controller => "oauth", :action => "access_token" }
40 { :path => "/oauth/access_token", :method => :post },
41 { :controller => "oauth", :action => "access_token" }
44 { :path => "/oauth/test_request", :method => :get },
45 { :controller => "oauth", :action => "test_request" }