Sha256: 3358074874848da218cd557b2d41d233720a621957ddeba15b05bf66de2303c8

Contents?: true

Size: 743 Bytes

Versions: 3

Compression:

Stored size: 743 Bytes

Contents

# $Id: tc_xml_document_write.rb,v 1.3 2006/04/17 13:30:19 roscopeco Exp $
require "libxml_test"
require 'test/unit'

class TC_XML_Document_Write < Test::Unit::TestCase
  def setup()
    @doc = XML::Document.new('1.0')
    assert_instance_of(XML::Document, @doc)
  end

  def teardown()
    @doc = nil
  end

  def test_ruby_xml_document_write_initialize()
    assert_instance_of(XML::Document, XML::Document.new())
    assert_equal('1.0', @doc.version)
  end # def test_ruby_xml_document_initialize()

  def test_ruby_xml_document_write_initialize2()
    doc = XML::Document.new('6.9')
    assert_instance_of(XML::Document, doc)
    assert_equal('6.9', doc.version)
  end # def test_ruby_xml_document_initialize2()
end # TC_XML_Document_Write

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libxml-ruby-0.3.8.2 tests/tc_xml_document_write.rb
libxml-ruby-0.3.8 tests/tc_xml_document_write.rb
libxml-ruby-0.3.8.4 tests/tc_xml_document_write.rb