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
@@ -85,6 +85,13 @@ class WelcomeControllerTest < ActionController::TestCase
:content => %r{warnLeavingUnsaved}
end
def test_logout_link_should_post
@request.session[:user_id] = 2
get :index
assert_select 'a[href=/logout][data-method=post]', :text => 'Sign out'
end
def test_call_hook_mixed_in
assert @controller.respond_to?(:call_hook)
end