Skip to content
This repository
tree: 595107f22e
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.297 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require 'abstract_unit'

class CDATANodeTest < Test::Unit::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
Something went wrong with that request. Please try again.