Sha256: 2e9dc8e2d532b4ad7cc39915fd954fd7c9671fd42ff0afdc87e38cc0ad1eab3f
Contents?: true
Size: 694 Bytes
Versions: 26
Compression:
Stored size: 694 Bytes
Contents
# encoding: UTF-8 require_relative './test_helper' class TestXInclude < Minitest::Test def setup @doc = LibXML::XML::Document.file(File.join(File.dirname(__FILE__), 'model/xinclude.xml')) assert_instance_of(LibXML::XML::Document, @doc) end def teardown @doc = nil end def test_ruby_xml_xinclude assert_equal(1, @doc.xinclude) assert_equal("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document xmlns:xi=\"http://www.w3.org/2001/XInclude\">\n <p>This libxml2 binding has the following project information:\n <code>This is some text to include in an xml file via XInclude.</code></p>\n</document>\n", @doc.to_s) end end
Version data entries
26 entries across 26 versions & 1 rubygems