# File test/contrib_test.rb, line 188 def test_xpath_whitespace_TobiasReif # same as oabove, with whitespace in XPath doc = Document.new XML_STRING_01.dup desired_result = Document.new '<author>Thomas, David; Hunt, Andrew</author>' xpath = "\/\/author\n \n" result = XPath.first(doc, xpath) failure_message = "\n[[[TR: AFAIK, whitespace should be allowed]]]\n" assert_equal desired_result.to_s, result.to_s, failure_message end