From 4dc85df4e7b3302a73b66b52539a5fa0d8e41bec Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 3 Aug 2014 22:14:44 +0200 Subject: [PATCH] Corrected the XPath "following" axis specs. --- spec/oga/xpath/evaluator/axes/following_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/oga/xpath/evaluator/axes/following_spec.rb b/spec/oga/xpath/evaluator/axes/following_spec.rb index 7684326..d6d3411 100644 --- a/spec/oga/xpath/evaluator/axes/following_spec.rb +++ b/spec/oga/xpath/evaluator/axes/following_spec.rb @@ -16,9 +16,9 @@ describe Oga::XPath::Evaluator do EOF - @first_baz = @document.children[0].children[1] + @first_baz = @document.children[0].children[0].children[1] @second_baz = @first_baz.children[0] - @third_baz = @document.children[0].children[0].children[1] + @third_baz = @document.children[0].children[1] @evaluator = described_class.new(@document) end @@ -39,8 +39,8 @@ describe Oga::XPath::Evaluator do it_behaves_like :node_set, :length => 1 - example 'return the second node' do - @set[0].should == @first_baz + example 'return the third node' do + @set[0].should == @third_baz end end