aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/scriptaculous_helper_test.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-09-23 02:32:55 +0000
committerRick Olson <technoweenie@gmail.com>2007-09-23 02:32:55 +0000
commit4e3ed5bc44f6cd20c9e353ab63fd24b92a7942be (patch)
tree1904187d3254fdc42681471e67608615993a355d /actionpack/test/template/scriptaculous_helper_test.rb
parent3dea8b580b9c67bb27c01290fb3b17f446544b78 (diff)
downloadrails-4e3ed5bc44f6cd20c9e353ab63fd24b92a7942be.tar.gz
rails-4e3ed5bc44f6cd20c9e353ab63fd24b92a7942be.tar.bz2
rails-4e3ed5bc44f6cd20c9e353ab63fd24b92a7942be.zip
Merge csrf_killer plugin into rails. Adds RequestForgeryProtection model that verifies session-specific _tokens for non-GET requests. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/scriptaculous_helper_test.rb')
-rw-r--r--actionpack/test/template/scriptaculous_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/scriptaculous_helper_test.rb b/actionpack/test/template/scriptaculous_helper_test.rb
index 514ba9107e..722839f15e 100644
--- a/actionpack/test/template/scriptaculous_helper_test.rb
+++ b/actionpack/test/template/scriptaculous_helper_test.rb
@@ -89,4 +89,8 @@ class ScriptaculousHelperTest < Test::Unit::TestCase
assert_dom_equal %(<script type=\"text/javascript\">\n//<![CDATA[\nDroppables.add(\"droptarget1\", {accept:['tshirts','mugs'], onDrop:function(element){new Ajax.Updater('infobox', 'http://www.example.com/', {asynchronous:true, evalScripts:true, parameters:'id=' + encodeURIComponent(element.id)})}})\n//]]>\n</script>),
drop_receiving_element("droptarget1", :accept => ['tshirts','mugs'], :update => 'infobox')
end
+
+ def request_forgery_protection_token
+ nil
+ end
end