From b12598112afafda656a25f46749f3d3156c2fc87 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 5 Aug 2013 20:09:09 +0100 Subject: [PATCH] Add method specifiers to oauth routing tests --- test/functional/oauth_controller_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/functional/oauth_controller_test.rb b/test/functional/oauth_controller_test.rb index b34416be6..d0ac28d0a 100644 --- a/test/functional/oauth_controller_test.rb +++ b/test/functional/oauth_controller_test.rb @@ -5,27 +5,27 @@ class OauthControllerTest < ActionController::TestCase # test all routes which lead to this controller def test_routes assert_routing( - { :path => "/oauth/revoke" }, + { :path => "/oauth/revoke", :method => :post }, { :controller => "oauth", :action => "revoke" } ) assert_routing( - { :path => "/oauth/authorize" }, + { :path => "/oauth/authorize", :method => :post }, { :controller => "oauth", :action => "authorize" } ) assert_routing( - { :path => "/oauth/token" }, + { :path => "/oauth/token", :method => :get }, { :controller => "oauth", :action => "token" } ) assert_routing( - { :path => "/oauth/request_token" }, + { :path => "/oauth/request_token", :method => :get }, { :controller => "oauth", :action => "request_token" } ) assert_routing( - { :path => "/oauth/access_token" }, + { :path => "/oauth/access_token", :method => :get }, { :controller => "oauth", :action => "access_token" } ) assert_routing( - { :path => "/oauth/test_request" }, + { :path => "/oauth/test_request", :method => :get }, { :controller => "oauth", :action => "test_request" } ) end -- 2.43.2