Sha256: 5a9c49417b4fa0d13ffadf30f8609861ee818d58466dddd60d81c38ea862d2ae
Contents?: true
Size: 696 Bytes
Versions: 45
Compression:
Stored size: 696 Bytes
Contents
# encoding: UTF-8 require './test_helper' 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
45 entries across 45 versions & 2 rubygems