summaryrefslogtreecommitdiff
path: root/test/rexml/test_document.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-06 17:03:40 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-06 17:03:40 +0000
commita324863b99e90303746742157e06c8d183db8257 (patch)
tree9d9e6646945d978eb192afad6791c15100c9fd56 /test/rexml/test_document.rb
parente992737b4a56637e2fb527184a9d571d17edc84a (diff)
* 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. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_document.rb')
-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 5207b42..0261e80 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