Sha256: 96f73e8d4444033c023ab18a233c60ce9c484c0fd8aff09cbdec7a73afb8c5a6

Contents?: true

Size: 685 Bytes

Versions: 40

Compression:

Stored size: 685 Bytes

Contents

describe UIFont do
  before do
    @font = UIFont.systemFontOfSize(UIFont.systemFontSize)
  end
  it 'should return self on #uifont' do
    @font.uifont.should.equal? @font
    @font.uifont.should.be.kind_of(UIFont)
  end
  it 'should return a font with a different size on #uifont(size)' do
    new_font = @font.uifont(12)
    new_font.should.be.kind_of(UIFont)
    new_font.pointSize.should == 12
    new_font.familyName.should == @font.familyName
  end
  it 'should accept font-size symbols' do
    new_font = @font.uifont(:label)
    new_font.should.be.kind_of(UIFont)
    new_font.pointSize.should == :label.uifontsize
    new_font.familyName.should == @font.familyName
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
sugarcube-4.0.0 spec/ios/uifont_spec.rb
sugarcube-3.5.0 spec/ios/uifont_spec.rb
sugarcube-3.4.2 spec/ios/uifont_spec.rb
sugarcube-3.4.1 spec/ios/uifont_spec.rb
sugarcube-3.4.0 spec/ios/uifont_spec.rb
sugarcube-3.3.7 spec/ios/uifont_spec.rb
sugarcube-3.3.6 spec/ios/uifont_spec.rb
sugarcube-3.3.5 spec/ios/uifont_spec.rb
sugarcube-3.3.4 spec/ios/uifont_spec.rb
sugarcube-3.3.3 spec/ios/uifont_spec.rb
sugarcube-3.3.2 spec/ios/uifont_spec.rb
sugarcube-3.3.1 spec/ios/uifont_spec.rb
sugarcube-3.3.0 spec/ios/uifont_spec.rb
sugarcube-3.2.0 spec/ios/uifont_spec.rb
sugarcube-3.1.1 spec/ios/uifont_spec.rb
sugarcube-3.1.0 spec/ios/uifont_spec.rb
sugarcube-3.0.8 spec/ios/uifont_spec.rb
sugarcube-3.0.7 spec/ios/uifont_spec.rb
sugarcube-3.0.6 spec/ios/uifont_spec.rb
sugarcube-3.0.5 spec/ios/uifont_spec.rb