Sha256: 7a38dab8185a64c26eafa50414d377954ff10b82cc5497306557c861d28f292b
Contents?: true
Size: 698 Bytes
Versions: 2
Compression:
Stored size: 698 Bytes
Contents
# encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) class TestXInclude < Minitest::Test def setup @doc = XML::Document.file(File.join(File.dirname(__FILE__), 'model/xinclude.xml')) assert_instance_of(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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libxml-ruby-3.1.0-x64-mingw32 | test/test_xinclude.rb |
libxml-ruby-3.1.0 | test/test_xinclude.rb |