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