Sha256: fa2167cd58632359aec7edb9ca8c3ed18b96060e9c28c86efda46a84374d75b8

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sugarcube-4.0.0 spec/helpers/attributed_string.rb
sugarcube-3.5.0 spec/helpers/attributed_string.rb
sugarcube-3.4.2 spec/helpers/attributed_string.rb
sugarcube-3.4.1 spec/helpers/attributed_string.rb
sugarcube-3.4.0 spec/helpers/attributed_string.rb
sugarcube-3.3.7 spec/helpers/attributed_string.rb