Sha256: 6f00665f93ea457dee6314894953927730861d7f0ac6fc93cfbcf9802e5f5a89
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
# $Id: tc_xml_xinclude.rb,v 1.3 2006/04/17 13:30:17 roscopeco Exp $ require "libxml_test" require 'test/unit' class TC_XML_XInclude < Test::Unit::TestCase def setup() @doc = XML::Document.file('tests/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('tests/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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-0.3.8.2 | tests/tc_xml_xinclude.rb |
libxml-ruby-0.3.8 | tests/tc_xml_xinclude.rb |
libxml-ruby-0.3.8.4 | tests/tc_xml_xinclude.rb |