Corrected the XPath "following" axis specs.

This commit is contained in:
Yorick Peterse 2014-08-03 22:14:44 +02:00
parent 5c23333f46
commit 4dc85df4e7
1 changed files with 4 additions and 4 deletions

View File

@ -16,9 +16,9 @@ describe Oga::XPath::Evaluator do
</root> </root>
EOF EOF
@first_baz = @document.children[0].children[1] @first_baz = @document.children[0].children[0].children[1]
@second_baz = @first_baz.children[0] @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) @evaluator = described_class.new(@document)
end end
@ -39,8 +39,8 @@ describe Oga::XPath::Evaluator do
it_behaves_like :node_set, :length => 1 it_behaves_like :node_set, :length => 1
example 'return the second <baz> node' do example 'return the third <baz> node' do
@set[0].should == @first_baz @set[0].should == @third_baz
end end
end end