Sha256: b0ef5b556aaa0d7b2e6a5fcc713febc6ab6c483cf19647678242917c4f3a2b08
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
describe UIButton do before do @subject = UIButton.new end it 'should set the title using `title=`' do @subject.title = 'foo' @subject.titleForState(UIControlStateNormal).should == 'foo' end it 'should set the title using `setTitle()`' do @subject.setTitle('foo') @subject.titleForState(UIControlStateNormal).should == 'foo' end it 'should get the title' do @subject.setTitle('foo', forState: UIControlStateNormal) @subject.title.should == 'foo' end it 'should set the attributedTitle using `attributedTitle=`' do @subject.attributedTitle = 'foo'.attrd @subject.attributedTitleForState(UIControlStateNormal).should == 'foo'.attrd end it 'should set the attributedTitle using `setAttributedTitle()`' do @subject.setAttributedTitle('foo'.attrd) @subject.attributedTitleForState(UIControlStateNormal).should == 'foo'.attrd end it 'should get the attributedTitle' do @subject.setAttributedTitle('foo'.attrd, forState: UIControlStateNormal) @subject.attributedTitle.should == 'foo'.attrd end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sugarcube-2.7.1 | spec/ios/uibutton_spec.rb |