Sha256: 5cd2bdf3db3213a29f7e95f571748e091efe00eb198867c975abfe768b1abd5d
Contents?: true
Size: 714 Bytes
Versions: 24
Compression:
Stored size: 714 Bytes
Contents
describe 'View attr' do before do @layout = TestViewAttrLayout.new end it 'should get :button' do @layout.view button = @layout.button button.should.be.kind_of(UIButton) end it 'should return the same :button' do @layout.view button = @layout.button button.should == @layout.button end it 'should call layout if the view doesnt exist' do label = @layout.label label.should.be.kind_of(UILabel) label.should == @layout.label end it 'should handle multiple views' do @layout.view text_field = @layout.text_field text_field.should.be.kind_of(UITextField) text_view = @layout.text_view text_view.should.be.kind_of(UITextView) end end
Version data entries
24 entries across 18 versions & 1 rubygems