diff --git a/spec/oga/xpath/compiler/axes/preceding_sibling_spec.rb b/spec/oga/xpath/compiler/axes/preceding_sibling_spec.rb index 1cd0096..3666725 100644 --- a/spec/oga/xpath/compiler/axes/preceding_sibling_spec.rb +++ b/spec/oga/xpath/compiler/axes/preceding_sibling_spec.rb @@ -46,6 +46,14 @@ describe Oga::XPath::Compiler do end end + describe 'relative to the root element' do + describe 'preceding-sibling::*' do + it 'returns an empty NodeSet' do + evaluate_xpath(@document.children[0]).should == node_set + end + end + end + describe 'relative to an attribute' do describe 'preceding-sibling::*' do it 'returns an empty NodeSet' do