From 16df67b1486d0651494a27d77f8e0469f4f1563f Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Mon, 30 Apr 2012 16:08:06 +0300 Subject: split CDATA end token in cdata_section helper --- actionpack/test/template/tag_helper_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/tag_helper_test.rb b/actionpack/test/template/tag_helper_test.rb index 32b33b4a55..7161d107b3 100644 --- a/actionpack/test/template/tag_helper_test.rb +++ b/actionpack/test/template/tag_helper_test.rb @@ -91,6 +91,11 @@ class TagHelperTest < ActionView::TestCase assert_equal "]]>", cdata_section("") end + def test_cdata_section_splitted + assert_equal "world]]>", cdata_section("hello]]>world") + assert_equal "world]]]]>again]]>", cdata_section("hello]]>world]]>again") + end + def test_escape_once assert_equal '1 < 2 & 3', escape_once('1 < 2 & 3') end -- cgit v1.2.3