From f2fd78f7b868c184e4ab2058e41a27043640843a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Jan 2013 17:34:48 +0000 Subject: 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 --- test/integration/routing/account_test.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/integration') 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" }, -- cgit v1.2.3