diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-11 21:41:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-11 21:41:10 +0000 |
commit | 6628610ed6969cb2f7b60a57b9e924bd24976271 (patch) | |
tree | 112fc59411df36c94c17cc40c1921e4cfcff7526 /test | |
parent | ddef51599bdabf814a78a2f787e4e2a53171366d (diff) | |
download | redmine-6628610ed6969cb2f7b60a57b9e924bd24976271.tar.gz redmine-6628610ed6969cb2f7b60a57b9e924bd24976271.zip |
Merged r12267.
git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@12271 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/application_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb index 7f4e3b595..3ad12a3d1 100644 --- a/test/integration/application_test.rb +++ b/test/integration/application_test.rb @@ -67,4 +67,13 @@ class ApplicationTest < ActionController::IntegrationTest get '/login.png' assert_response 404 end + + def test_invalid_token_should_call_custom_handler + ActionController::Base.allow_forgery_protection = true + post '/issues' + assert_response 422 + assert_include "Invalid form authenticity token.", response.body + ensure + ActionController::Base.allow_forgery_protection = false + end end |