# $Id: tc_xml_xinclude.rb,v 1.1 2003/02/06 10:50:57 sean Exp $ class TC_XML_XInclude < Test::Unit::TestCase def setup() @doc = XML::Document.file('xinclude.xml') assert_instance_of(XML::Document, @doc) end def teardown() @doc = nil end def test_ruby_xml_xinclude() xinclude_doc = "\n\n" xinclude_doc << "

This libxml2 binding has the following project information:\n " msg = '' File.open('.rubynet_project') do |f| for line in f msg << line end end xinclude_doc << msg << "

\n
\n" ret = @doc.xinclude assert_equal(1, ret) assert_equal(xinclude_doc, @doc.to_s) end end