From c6df73d031375ba96e31cc5dc1a34fb21caa0d39 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 30 Aug 2015 01:20:08 +0200 Subject: [PATCH] Fix eq spec to not depend on at_xpath --- spec/oga/xpath/compiler/operators/eq_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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