diff options
-rw-r--r-- | test/rexml/xpath/test_base.rb | 7 |
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 } |