spec/helpers/attributed_string.rb in sugarcube-3.3.6 vs spec/helpers/attributed_string.rb in sugarcube-3.3.7

- old
+ new

@@ -1,6 +1,9 @@ class Should def have_string_attributes(attributes) @object.should.be.kind_of(NSAttributedString) - @object.attributesAtIndex(0, effectiveRange:nil).should == attributes + has_attrs = @object.attributesAtIndex(0, effectiveRange: nil) + attributes.each do |key, value| + has_attrs[key].should == attributes[key] + end end end