summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-30 17:34:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-30 17:34:48 +0000
commitf2fd78f7b868c184e4ab2058e41a27043640843a (patch)
tree5fa1f049587fa5dd2f0cced7caed3f8a7bdbf8e1 /test/integration
parent41faf7f5f54441a2f0ace22d5e40a0bd527a7885 (diff)
downloadredmine-f2fd78f7b868c184e4ab2058e41a27043640843a.tar.gz
redmine-f2fd78f7b868c184e4ab2058e41a27043640843a.zip
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
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/routing/account_test.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/integration/routing/account_test.rb b/test/integration/routing/account_test.rb
index d06d991ee..5b59a6220 100644
--- a/test/integration/routing/account_test.rb
+++ b/test/integration/routing/account_test.rb
@@ -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" },