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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user