Fix eq spec to not depend on at_xpath

This commit is contained in:
Yorick Peterse 2015-08-30 01:20:08 +02:00
parent 5a736aa25c
commit c6df73d031
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ describe Oga::XPath::Compiler do
end end
it 'returns true if an axis and a string are equal' do 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 evaluate_xpath(element, '@class = "foo"').should == true
end end