From d833645cd8609e50f56acaaa7e6dd85e3198a446 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Thu, 14 Dec 2006 20:56:03 +0000 Subject: Fix HTML::Node to output double quotes instead of single quotes. Closes #6845 [mitreandy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/template/text_helper_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb index 37eff78e76..49f5160711 100644 --- a/actionpack/test/template/text_helper_test.rb +++ b/actionpack/test/template/text_helper_test.rb @@ -204,7 +204,7 @@ class TextHelperTest < Test::Unit::TestCase def test_sanitize_form raw = "
" result = sanitize(raw) - assert_equal "<form action='/foo/bar' method='post'></form>", result + assert_equal %(<form action="/foo/bar" method="post"></form>), result end def test_sanitize_plaintext @@ -216,25 +216,25 @@ class TextHelperTest < Test::Unit::TestCase def test_sanitize_script raw = "" result = sanitize(raw) - assert_equal "<script language='Javascript'>blah blah blah</script>", result + assert_equal %{<script language="Javascript">blah blah blah</script>}, result end def test_sanitize_js_handlers raw = %{onthis="do that" hello} result = sanitize(raw) - assert_equal %{onthis="do that" hello}, result + assert_equal %{onthis="do that" hello}, result end def test_sanitize_javascript_href raw = %{href="javascript:bang" foo, bar} result = sanitize(raw) - assert_equal %{href="javascript:bang" foo, bar}, result + assert_equal %{href="javascript:bang" foo, bar}, result end def test_sanitize_image_src raw = %{src="javascript:bang" foo, bar} result = sanitize(raw) - assert_equal %{src="javascript:bang" foo, bar}, result + assert_equal %{src="javascript:bang" foo, bar}, result end def test_cycle_class -- cgit v1.2.3