Rewrote an attribute spec.

This way the spec doesn't depend on the attributes object being a Hash.
This commit is contained in:
Yorick Peterse 2014-07-19 21:07:11 +02:00
parent ce86785da6
commit ad4d7a4744
1 changed files with 2 additions and 2 deletions

View File

@ -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