summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-21 06:18:08 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-21 06:18:08 +0000
commitdaec80fe983519e52beb5be8bd779597e2a8c5b2 (patch)
tree658fdc3b678f764af4c551b79ff08cb480f47282
parent7e9c19ad3d6f6f040b04ef616a4b8a40b5a00b50 (diff)
rexml: Make more readable
test/rexml/xpath/test_base.rb: Use here document for readability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 }