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