aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/url_helper_test.rb
diff options
context:
space:
mode:
authorJeff Kreeftmeijer <jeff@kreeftmeijer.nl>2010-10-11 20:39:12 +0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-02 19:38:28 -0200
commitbb9c58eb4aa637fa75c69c705a9918d6322ff834 (patch)
tree1f6f113bdc943b1e96eb283f385383517d127aba /actionpack/test/template/url_helper_test.rb
parentd446392f76c063d9f04396a1d3ca9e314a521671 (diff)
downloadrails-bb9c58eb4aa637fa75c69c705a9918d6322ff834.tar.gz
rails-bb9c58eb4aa637fa75c69c705a9918d6322ff834.tar.bz2
rails-bb9c58eb4aa637fa75c69c705a9918d6322ff834.zip
Make sure capture's output gets html_escaped [#5545 state:resolved]
Also remove a duplicate test_link_to_unless assertion and add .html_safe to the remaining one. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/test/template/url_helper_test.rb')
-rw-r--r--actionpack/test/template/url_helper_test.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb
index bc2548e06c..4a8cea36d4 100644
--- a/actionpack/test/template/url_helper_test.rb
+++ b/actionpack/test/template/url_helper_test.rb
@@ -263,12 +263,7 @@ class UrlHelperTest < ActiveSupport::TestCase
assert_equal "<strong>Showing</strong>",
link_to_unless(true, "Showing", url_hash) { |name|
- "<strong>#{name}</strong>"
- }
-
- assert_equal "<strong>Showing</strong>",
- link_to_unless(true, "Showing", url_hash) { |name|
- "<strong>#{name}</strong>"
+ "<strong>#{name}</strong>".html_safe
}
assert_equal "test",