aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/tag_helper_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-06-30 00:12:48 +0200
committerXavier Noria <fxn@hashref.com>2010-06-30 00:32:26 +0200
commitec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd (patch)
tree279fc483dc43b82d1c29b9f49263dc686d821bca /actionpack/test/template/tag_helper_test.rb
parentcba1460a2fe2bbe1153620582a66e03cec9ba7a5 (diff)
downloadrails-ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd.tar.gz
rails-ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd.tar.bz2
rails-ec3bfa2ead7337fe99ff036d4b8b5ae0a321f8cd.zip
s/escape_once/html_escape/, since html safety is the contract that now says whether something has to be escaped
Diffstat (limited to 'actionpack/test/template/tag_helper_test.rb')
-rw-r--r--actionpack/test/template/tag_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb
index ec5fe3d1d7..507cdca8d0 100644
--- a/actionpack/test/template/tag_helper_test.rb
+++ b/actionpack/test/template/tag_helper_test.rb
@@ -95,9 +95,9 @@ class TagHelperTest < ActionView::TestCase
assert_equal '1 &lt; 2 &amp; 3', escape_once('1 < 2 &amp; 3')
end
- def test_double_escaping_attributes
+ def test_tag_honors_html_safe_for_param_values
['1&amp;2', '1 &lt; 2', '&#8220;test&#8220;'].each do |escaped|
- assert_equal %(<a href="#{escaped}" />), tag('a', :href => escaped)
+ assert_equal %(<a href="#{escaped}" />), tag('a', :href => escaped.html_safe)
end
end