Sha256: 60c3ab9ce485a16a653f500a3321d73225ad9380db3c0e8bb4c46451533a9c40

Contents?: true

Size: 313 Bytes

Versions: 124

Compression:

Stored size: 313 Bytes

Contents

describe "UILabel" do

	it 'should have a #fit_to_size method' do
		@label = UILabel.alloc.initWithFrame([[10, 10], [200, 40]])
		@label.text = "Timeo Danaos et dona ferentes" * 10
		@label.numberOfLines = 0
		@label.fit_to_size(40)

		@label.font.pointSize.should < 40
		@label.font.pointSize.should > 0
	end
end

Version data entries

124 entries across 124 versions & 1 rubygems

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