mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
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:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user