diff --git a/spec/oga/xpath/evaluator/axes/attribute_spec.rb b/spec/oga/xpath/evaluator/axes/attribute_spec.rb
index 2aa096d..c8f366f 100644
--- a/spec/oga/xpath/evaluator/axes/attribute_spec.rb
+++ b/spec/oga/xpath/evaluator/axes/attribute_spec.rb
@@ -3,11 +3,11 @@ require 'spec_helper'
describe Oga::XPath::Evaluator do
context 'attribute axis' do
before do
- document = parse('')
- @evaluator = described_class.new(document)
+ document = parse('')
+ @evaluator = described_class.new(document.children[0])
end
- context 'top-level attributes' do
+ context 'element attributes' do
before do
@set = @evaluator.evaluate('attribute::foo')
end
@@ -23,22 +23,6 @@ describe Oga::XPath::Evaluator do
end
end
- context 'nested attributes' do
- before do
- @set = @evaluator.evaluate('/a/attribute::x')
- end
-
- it_behaves_like :node_set, :length => 1
-
- example 'return an Attribute instance' do
- @set[0].is_a?(Oga::XML::Attribute).should == true
- end
-
- example 'return the correct attribute' do
- @set[0].name.should == 'x'
- end
- end
-
context 'non existing attributes' do
before do
@set = @evaluator.evaluate('attribute::bar')