Fixed XPath compiler support for not()
This commit is contained in:
1 parent
7cbc53c64e
commit
a30cdba8d0
2 files changed
+3
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user