Sha256: 86758559343072da67b7dd2eda711ec7f502c3e757732d7ba4d10b131936746f
Contents?: true
Size: 554 Bytes
Versions: 19
Compression:
Stored size: 554 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper")) module Nokogiri module XML class TestComment < Nokogiri::TestCase def setup super @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 def test_many_comments 100.times { Nokogiri::XML::Comment.new(@xml, 'hello world') } end end end end
Version data entries
19 entries across 19 versions & 2 rubygems