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
|
||||
end
|
||||
|
||||
example 'set the attributes of the element' do
|
||||
@element.attributes.should == {:bar => 'baz'}
|
||||
example 'set the bar attribute' do
|
||||
@element.attribute('bar').should == 'baz'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue