aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
commitea2f686cc4fbea2dd30b0ee4b7067e2d97a6ac0d (patch)
tree658fdc3b678f764af4c551b79ff08cb480f47282 /test
parent44cfa62d877c6e472c70461acd57d122d7c6eed5 (diff)
downloadruby-ea2f686cc4fbea2dd30b0ee4b7067e2d97a6ac0d.tar.gz
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
Diffstat (limited to 'test')
-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 935c8d54e4..5e0b477081 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 }