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

Version Path
nokogiri-1.0.7-x86-mswin32-60 test/xml/test_comment.rb
nokogiri-1.1.0 test/xml/test_comment.rb
nokogiri-1.1.1-java test/xml/test_comment.rb
nokogiri-1.1.1-x86-mswin32-60 test/xml/test_comment.rb
nokogiri-1.1.0-x86-mswin32-60 test/xml/test_comment.rb
nokogiri-1.0.7 test/xml/test_comment.rb
nokogiri-1.1.1 test/xml/test_comment.rb
nokogiri-1.2.0-java test/xml/test_comment.rb
nokogiri-1.2.0-x86-mswin32-60 test/xml/test_comment.rb
nokogiri-1.2.0 test/xml/test_comment.rb
nokogiri-1.2.1-java test/xml/test_comment.rb
nokogiri-1.2.1-x86-mswin32-60 test/xml/test_comment.rb
nokogiri-1.2.1 test/xml/test_comment.rb