Rewrote an attribute spec.
This way the spec doesn't depend on the attributes object being a Hash.
This commit is contained in:
1 parent
ce86785da6
commit
ad4d7a4744
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user