Rewrote an attribute spec.
This way the spec doesn't depend on the attributes object being a Hash.
This commit is contained in:
parent
ce86785da6
commit
ad4d7a4744
|
@ -42,8 +42,8 @@ describe Oga::XML::Parser do
|
||||||
@element.is_a?(Oga::XML::Element).should == true
|
@element.is_a?(Oga::XML::Element).should == true
|
||||||
end
|
end
|
||||||
|
|
||||||
example 'set the attributes of the element' do
|
example 'set the bar attribute' do
|
||||||
@element.attributes.should == {:bar => 'baz'}
|
@element.attribute('bar').should == 'baz'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue