Sha256: ea7418056f2e497b2319387e2a74ac103ce2dbb7f03c09d104c7d354b909bdeb
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
require "libxml" require 'test/unit' class TC_XML_XInclude < Test::Unit::TestCase def setup() @doc = XML::Document.file('model/xinclude.xml') assert_instance_of(XML::Document, @doc) end def teardown() @doc = nil end def test_ruby_xml_xinclude() xinclude_doc = "<?xml version=\"1.0\"?>\n<document xmlns:xi=\"http://www.w3.org/2001/XInclude\">\n" xinclude_doc << " <p>This libxml2 binding has the following project information:\n <code>" msg = '' File.open('model/rubynet_project') do |f| for line in f msg << line end end xinclude_doc << msg << "</code></p>\n</document>\n" ret = @doc.xinclude assert_equal(1, ret) assert_equal(xinclude_doc, @doc.to_s) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.6.0 | test/tc_xml_xinclude.rb |
libxml-ruby-0.6.0-x86-mswin32-60 | test/tc_xml_xinclude.rb |