Fixed XPath compiler support for not()

This commit is contained in:
Yorick Peterse committed 2015-08-19 20:14:24 +02:00
1 parent 7cbc53c64e
commit a30cdba8d0
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -28,7 +28,8 @@ describe Oga::XPath::Compiler do
describe 'in a predicate' do
it 'returns a NodeSet containing all matching nodes ' do
evaluate_xpath(@document, 'root[not(node())]').should == node_set(@root)
evaluate_xpath(@document, 'root[not(comment())]')
.should == node_set(@root)
end
end
end