From ad4d7a4744ad6d3be59117a58c5e0474f2b79410 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sat, 19 Jul 2014 21:07:11 +0200 Subject: [PATCH] Rewrote an attribute spec. This way the spec doesn't depend on the attributes object being a Hash. --- spec/oga/xml/parser/elements_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/oga/xml/parser/elements_spec.rb b/spec/oga/xml/parser/elements_spec.rb index a8a698c..cf716cf 100644 --- a/spec/oga/xml/parser/elements_spec.rb +++ b/spec/oga/xml/parser/elements_spec.rb @@ -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