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