diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2013-01-28 07:25:20 -0800 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2013-01-28 07:25:20 -0800 |
commit | 5f5a43e2f7f1075852fcf173e81c6f4b5ca8c6fa (patch) | |
tree | 83f80701b71df16ef0546b6566448ed816a9d6c0 /actionpack/test/controller | |
parent | 5f30b547c8acbf9086329e9c93a3c77768bfb1ea (diff) | |
parent | 2ef138f0d49e92550bb74a103df7ce5074b18241 (diff) | |
download | rails-5f5a43e2f7f1075852fcf173e81c6f4b5ca8c6fa.tar.gz rails-5f5a43e2f7f1075852fcf173e81c6f4b5ca8c6fa.tar.bz2 rails-5f5a43e2f7f1075852fcf173e81c6f4b5ca8c6fa.zip |
Merge pull request #9032 from firmhouse/head-breaks-csrf
Make HEAD work / convert to GET once more
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/request_forgery_protection_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb index 523a8d0572..7571192f97 100644 --- a/actionpack/test/controller/request_forgery_protection_test.rb +++ b/actionpack/test/controller/request_forgery_protection_test.rb @@ -170,6 +170,10 @@ module RequestForgeryProtectionTests assert_not_blocked { get :index } end + def test_should_allow_head + assert_not_blocked { head :index } + end + def test_should_allow_post_without_token_on_unsafe_action assert_not_blocked { post :unsafe } end |