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

Version Path
motion-kit-1.1.1 spec/tvos/view_attr_spec.rb
motion-kit-1.1.1 spec/ios/view_attr_spec.rb
motion-kit-1.1.0 spec/tvos/view_attr_spec.rb
motion-kit-1.1.0 spec/ios/view_attr_spec.rb
motion-kit-1.0.3 spec/ios/view_attr_spec.rb
motion-kit-1.0.3 spec/tvos/view_attr_spec.rb
motion-kit-1.0.2 spec/tvos/view_attr_spec.rb
motion-kit-1.0.2 spec/ios/view_attr_spec.rb
motion-kit-1.0.1 spec/tvos/view_attr_spec.rb
motion-kit-1.0.1 spec/ios/view_attr_spec.rb
motion-kit-1.0.0 spec/ios/view_attr_spec.rb
motion-kit-1.0.0 spec/tvos/view_attr_spec.rb
motion-kit-0.18.0 spec/ios/view_attr_spec.rb
motion-kit-0.17.0 spec/ios/view_attr_spec.rb
motion-kit-0.16.0 spec/ios/view_attr_spec.rb
motion-kit-0.15.0 spec/ios/view_attr_spec.rb
motion-kit-0.14.2 spec/ios/view_attr_spec.rb
motion-kit-0.14.1 spec/ios/view_attr_spec.rb
motion-kit-0.14.0 spec/ios/view_attr_spec.rb
motion-kit-0.13.0 spec/ios/view_attr_spec.rb