Sha256: 65057c96f88f1692c1fedaa2846ff12c902b37da4926a6cc08b44a2b30488a87

Contents?: true

Size: 426 Bytes

Versions: 6

Compression:

Stored size: 426 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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nokogiri-1.2.2-x86-mswin32-60 test/xml/test_comment.rb
nokogiri-1.2.2-java test/xml/test_comment.rb
nokogiri-1.2.2 test/xml/test_comment.rb
nokogiri-1.2.3-java test/xml/test_comment.rb
nokogiri-1.2.3 test/xml/test_comment.rb
nokogiri-1.2.3-x86-mswin32-60 test/xml/test_comment.rb