Sha256: ccd2e35f796dd4a8e75ddf166a344493104f0b8f45c684515a1f973367da238e

Contents?: true

Size: 547 Bytes

Versions: 6

Compression:

Stored size: 547 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', "helper"))

module Nokogiri
  module XML
    class TestDocumentFragment < Nokogiri::TestCase
      def test_new
        @xml = Nokogiri::XML.parse(File.read(XML_FILE), XML_FILE)
        fragment = Nokogiri::XML::DocumentFragment.new(@xml)
      end

      def test_name
        @xml = Nokogiri::XML.parse(File.read(XML_FILE), XML_FILE)
        fragment = Nokogiri::XML::DocumentFragment.new(@xml)
        assert_equal '#document-fragment', fragment.name
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nokogiri-1.2.0-x86-mswin32-60 test/xml/test_document_fragment.rb
nokogiri-1.2.0-java test/xml/test_document_fragment.rb
nokogiri-1.2.0 test/xml/test_document_fragment.rb
nokogiri-1.2.1-java test/xml/test_document_fragment.rb
nokogiri-1.2.1-x86-mswin32-60 test/xml/test_document_fragment.rb
nokogiri-1.2.1 test/xml/test_document_fragment.rb