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