Sha256: 27a7788b5c980f4d82c50dbfc8ba55b2496ddcfc2c10f3c630224b6608b17b7b
Contents?: true
Size: 358 Bytes
Versions: 15
Compression:
Stored size: 358 Bytes
Contents
require 'test_helper' require 'rails/deprecated_sanitizer/html-scanner/html/node' class CDATANodeTest < ActiveSupport::TestCase def setup @node = HTML::CDATA.new(nil, 0, 0, "<p>howdy</p>") end def test_to_s assert_equal "<![CDATA[<p>howdy</p>]]>", @node.to_s end def test_content assert_equal "<p>howdy</p>", @node.content end end
Version data entries
15 entries across 15 versions & 7 rubygems