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

Version Path
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_comment.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_comment.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/xml/test_comment.rb
nokogiri-1.3.3-x86-mswin32 test/xml/test_comment.rb
nokogiri-1.3.3-x86-mingw32 test/xml/test_comment.rb
nokogiri-1.3.3-java test/xml/test_comment.rb
nokogiri-1.3.2-x86-mswin32 test/xml/test_comment.rb
nokogiri-1.3.2-x86-mingw32 test/xml/test_comment.rb
nokogiri-1.3.2-java test/xml/test_comment.rb
nokogiri-1.3.0-x86-mingw32 test/xml/test_comment.rb
nokogiri-1.3.2 test/xml/test_comment.rb
nokogiri-1.3.3 test/xml/test_comment.rb
nokogiri-1.3.0-java test/xml/test_comment.rb
nokogiri-1.3.1-x86-mingw32 test/xml/test_comment.rb
nokogiri-1.3.0-x86-mswin32 test/xml/test_comment.rb
nokogiri-1.3.0 test/xml/test_comment.rb
nokogiri-1.3.1-java test/xml/test_comment.rb
nokogiri-1.3.1-x86-mswin32 test/xml/test_comment.rb
nokogiri-1.3.1 test/xml/test_comment.rb