Sha256: f461344d42b2608eb334f292080a351b57687b78d635e84380f6e17272e4f527
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
require 'xml' require 'test/unit' class TestXInclude < Test::Unit::TestCase 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
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
libxml-ruby-r19mingw-1.1.4 | test/tc_xinclude.rb |
libxml-ruby-1.1.4 | test/tc_xinclude.rb |
libxml-ruby-1.1.4-x86-mswin32-60 | test/tc_xinclude.rb |
coupa-libxml-ruby-1.1.4 | test/tc_xinclude.rb |