diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-04-26 11:00:08 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-04-26 11:00:08 -0300 |
commit | 66fe53118f890252118841d78b43fd5560a8f47f (patch) | |
tree | 722f6102568984b4c936059f863ccd66b4950563 | |
parent | a9b41fee720823ff4ba1df5df2d1f42283056734 (diff) | |
parent | 0ad06f254538d7eea5d86e1fc254f838ec899b68 (diff) | |
download | rails-66fe53118f890252118841d78b43fd5560a8f47f.tar.gz rails-66fe53118f890252118841d78b43fd5560a8f47f.tar.bz2 rails-66fe53118f890252118841d78b43fd5560a8f47f.zip |
Merge pull request #19909 from prathamesh-sonpatki/rm-unused-code
Removed unused code from request_forgery_protection tests
-rw-r--r-- | actionpack/test/controller/request_forgery_protection_test.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb index 8887f291cf..f8cf79a257 100644 --- a/actionpack/test/controller/request_forgery_protection_test.rb +++ b/actionpack/test/controller/request_forgery_protection_test.rb @@ -12,14 +12,6 @@ module RequestForgeryProtectionActions render :inline => "<%= button_to('New', '/') %>" end - def external_form - render :inline => "<%= form_tag('http://farfar.away/form', :authenticity_token => 'external_token') {} %>" - end - - def external_form_without_protection - render :inline => "<%= form_tag('http://farfar.away/form', :authenticity_token => false) {} %>" - end - def unsafe render :text => 'pwn' end @@ -28,14 +20,6 @@ module RequestForgeryProtectionActions render :inline => "<%= csrf_meta_tags %>" end - def external_form_for - render :inline => "<%= form_for(:some_resource, :authenticity_token => 'external_token') {} %>" - end - - def form_for_without_protection - render :inline => "<%= form_for(:some_resource, :authenticity_token => false ) {} %>" - end - def form_for_remote render :inline => "<%= form_for(:some_resource, :remote => true ) {} %>" end @@ -70,7 +54,6 @@ module RequestForgeryProtectionActions negotiate_same_origin end - def rescue_action(e) raise e end end # sample controllers |