mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/rexml] test: compare with real element
https://github.com/ruby/rexml/commit/9f2908de2e
This commit is contained in:
parent
ee8985ef0e
commit
33e4a59b4a
1 changed files with 5 additions and 2 deletions
|
@ -237,8 +237,11 @@ module REXMLTests
|
|||
</root>
|
||||
XML
|
||||
|
||||
m = REXML::XPath.match(doc, "//foo[@bar=$n]", nil, { "n" => nil })
|
||||
assert_equal( 1, m.size )
|
||||
assert_equal([doc.root.elements[2]],
|
||||
REXML::XPath.match(doc,
|
||||
"//foo[@bar=$n]",
|
||||
nil,
|
||||
{"n" => nil}))
|
||||
end
|
||||
|
||||
def test_unregistered_method
|
||||
|
|
Loading…
Add table
Reference in a new issue