aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-24 08:13:55 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-24 08:13:55 +0000
commit4b33306c704d6429e42e317802c92bc57f0de61c (patch)
treed8486d2913a5433be9ab31c74fa8357f93a0e376 /actionpack/test/template/tag_helper_test.rb
parent38454983b48a117737bcd25d3962e2578d6c38f0 (diff)
downloadrails-4b33306c704d6429e42e317802c92bc57f0de61c.tar.gz
rails-4b33306c704d6429e42e317802c92bc57f0de61c.tar.bz2
rails-4b33306c704d6429e42e317802c92bc57f0de61c.zip
The tag helper may bypass escaping.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template/tag_helper_test.rb')
-rw-r--r--actionpack/test/template/tag_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb
index 1e8957d756..c7edc678ff 100644
--- a/actionpack/test/template/tag_helper_test.rb
+++ b/actionpack/test/template/tag_helper_test.rb
@@ -73,4 +73,8 @@ class TagHelperTest < Test::Unit::TestCase
assert_equal %(<a href="#{escaped.gsub /&/, '&amp;'}" />), tag('a', :href => escaped)
end
end
+
+ def test_disable_escaping
+ assert_equal '<a href="&amp;" />', tag('a', { :href => '&amp;' }, false, false)
+ end
end