diff options
author | Dan Pickett <dpickett@enlightsolutions.com> | 2011-02-06 11:19:02 -0500 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-06 19:04:52 -0200 |
commit | 3026843dc1ff42a632ebe989e1f6dfadb0cd10a5 (patch) | |
tree | a076b9ebc57861307fb07e780e77890574b4dd7f /actionpack/test/controller/request_forgery_protection_test.rb | |
parent | a3f5d7159d00a0c7c7d79d15652028ac13df30af (diff) | |
download | rails-3026843dc1ff42a632ebe989e1f6dfadb0cd10a5.tar.gz rails-3026843dc1ff42a632ebe989e1f6dfadb0cd10a5.tar.bz2 rails-3026843dc1ff42a632ebe989e1f6dfadb0cd10a5.zip |
put authenticity_token option in parity w/ remote
[#6228 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/test/controller/request_forgery_protection_test.rb')
-rw-r--r-- | actionpack/test/controller/request_forgery_protection_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/request_forgery_protection_test.rb b/actionpack/test/controller/request_forgery_protection_test.rb index 4f4de0cbee..68d4c6a57c 100644 --- a/actionpack/test/controller/request_forgery_protection_test.rb +++ b/actionpack/test/controller/request_forgery_protection_test.rb @@ -29,11 +29,11 @@ module RequestForgeryProtectionActions end def external_form_for - render :inline => "<%= form_for(:some_resource, :html => { :authenticity_token => 'external_token' }) {} %>" + render :inline => "<%= form_for(:some_resource, :authenticity_token => 'external_token') {} %>" end def form_for_without_protection - render :inline => "<%= form_for(:some_resource, :html => { :authenticity_token => false }) {} %>" + render :inline => "<%= form_for(:some_resource, :authenticity_token => false ) {} %>" end def rescue_action(e) raise e end |