Sha256: 2d5c98c86450126d405a5d6662eb51731e246005d918f6c349d0c8dbdb0ad843
Contents?: true
Size: 412 Bytes
Versions: 13
Compression:
Stored size: 412 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) module Nokogiri module XML class TestComment < Nokogiri::TestCase def setup @xml = Nokogiri::XML.parse(File.read(XML_FILE), XML_FILE) end def test_new comment = Nokogiri::XML::Comment.new(@xml, 'hello world') assert_equal('<!--hello world-->', comment.to_s) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems