summaryrefslogtreecommitdiff
path: root/test/rexml/xpath/test_base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rexml/xpath/test_base.rb')
-rw-r--r--test/rexml/xpath/test_base.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb
index 935c8d54e40..5e0b4770813 100644
--- a/test/rexml/xpath/test_base.rb
+++ b/test/rexml/xpath/test_base.rb
@@ -873,7 +873,12 @@ module REXMLTests
end
def test_xpath_namespace
- d = REXML::Document.new("<tag1 xmlns='ns1'><tag2 xmlns='ns2'/><tada>xa</tada></tag1>")
+ d = REXML::Document.new(<<-XML)
+<tag1 xmlns='ns1'>
+ <tag2 xmlns='ns2'/>
+ <tada>xa</tada>
+</tag1>
+ XML
x = d.root
num = 0
x.each_element('tada') { num += 1 }