Sha256: 2c3b9b99870e69efe377fc779de2c3437872e28530110a23d06509cb983b7929
Contents?: true
Size: 675 Bytes
Versions: 5
Compression:
Stored size: 675 Bytes
Contents
describe 'UIButton Layout and objc-style selectors' do before do @layout = TestButtonLayout.new @layout.view end it 'should set the title' do @layout.get(:button).currentTitle.should == TestButtonLayout::TITLE end it 'should set the highlighted title' do @layout.get(:button).titleForState(UIControlStateHighlighted).should == TestButtonLayout::HIGHLIGHTED_TITLE end it 'should set the image' do @layout.get(:button).currentImage.should == TestButtonLayout::IMAGE end it 'should set the highlighted image' do @layout.get(:button).imageForState(UIControlStateHighlighted).should == TestButtonLayout::HIGHLIGHTED_IMAGE end end
Version data entries
5 entries across 5 versions & 1 rubygems