Use POST instead of GET for logging out (#13022).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11289 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-01-30 17:34:48 +00:00
parent 41faf7f5f5
commit f2fd78f7b8
6 changed files with 35 additions and 9 deletions

View File

@@ -25,10 +25,12 @@ class RoutingAccountTest < ActionController::IntegrationTest
{ :controller => 'account', :action => 'login' }
)
end
assert_routing(
{ :method => 'get', :path => "/logout" },
{ :controller => 'account', :action => 'logout' }
)
["get", "post"].each do |method|
assert_routing(
{ :method => method, :path => "/logout" },
{ :controller => 'account', :action => 'logout' }
)
end
["get", "post"].each do |method|
assert_routing(
{ :method => method, :path => "/account/register" },