From f49dc37e7100d8358d864a6e008c17acd24765fc Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 12 Oct 2005 22:47:39 +0000 Subject: Wrap javascript_tag contents in a CDATA section and add a cdata_section method to TagHelper. Closes #1691. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2543 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/capture_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/capture_test.rb b/actionpack/test/controller/capture_test.rb index eab7865937..461777e4e2 100644 --- a/actionpack/test/controller/capture_test.rb +++ b/actionpack/test/controller/capture_test.rb @@ -40,7 +40,7 @@ class CaptureTest < Test::Unit::TestCase def test_update_element_with_capture get :update_element_with_capture assert_equal( - "" + + "" + "\n\n$('status').innerHTML = '\\n You bought something!\\n';", @response.body.strip ) -- cgit v1.2.3