diff --git a/spec/oga/xpath/compiler/operators/eq_spec.rb b/spec/oga/xpath/compiler/operators/eq_spec.rb index 157036e..24b1752 100644 --- a/spec/oga/xpath/compiler/operators/eq_spec.rb +++ b/spec/oga/xpath/compiler/operators/eq_spec.rb @@ -75,7 +75,7 @@ describe Oga::XPath::Compiler do end it 'returns true if an axis and a string are equal' do - element = @document.at_xpath('root/b') + element = @document.children[0].children[1] evaluate_xpath(element, '@class = "foo"').should == true end