summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-05 00:02:52 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-05 00:02:52 +0000
commit284dc8effcf9914e944a3f386a38b49b56a8012d (patch)
tree4900a4d9b63180fb39280683e160050b776da6d0 /test
parenta120cd596658f4bd85b332149bd204299e2ab0e7 (diff)
merge revision(s) 20121:
* lib/rexml/entity.rb (unnormalized): do not call document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. backported from trunk. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@22060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rexml/test_document.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rexml/test_document.rb b/test/rexml/test_document.rb
index 5207b42d72..0261e80b74 100644
--- a/test/rexml/test_document.rb
+++ b/test/rexml/test_document.rb
@@ -35,6 +35,7 @@ EOF
<member>
&a;
&a2;
+&lt;
</member>
EOF
@@ -53,7 +54,7 @@ EOF
REXML::Document.entity_expansion_limit = 4
doc = REXML::Document.new(XML_WITH_4_ENTITY_EXPANSION)
- assert_equal("\na\na a\n", doc.root.children.first.value)
+ assert_equal("\na\na a\n<\n", doc.root.children.first.value)
REXML::Document.entity_expansion_limit = 3
doc = REXML::Document.new(XML_WITH_4_ENTITY_EXPANSION)
assert_raise(RuntimeError) do