From 25b656fefa75954cffff119a14cf7650f4f99a92 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Mar 2005 12:07:13 +0000 Subject: Fixed that single quote was not escaped in a UrlHelper#link_to javascript confirm #549 [Scott Barron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/url_helper_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 47241bd09f..a38a259167 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -27,6 +27,10 @@ class UrlHelperTest < Test::Unit::TestCase "Hello", link_to("Hello", "http://www.world.com", :confirm => "Are you sure?") ) + assert_equal( + "Hello", + link_to("Hello", "http://www.world.com", :confirm => "You can't possibly be sure, can you?") + ) end def test_link_image_to -- cgit v1.2.3