Sha256: 91a04272389f5495d4239c83ea3fd26ce308474ed21a735e1b0ee7b28299f3c8

Contents?: true

Size: 492 Bytes

Versions: 18

Compression:

Stored size: 492 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

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
motion-kit-0.10.11 spec/ios/view_attr_spec.rb
motion-kit-0.10.10 spec/ios/view_attr_spec.rb
motion-kit-0.10.9 spec/ios/view_attr_spec.rb
motion-kit-0.10.8 spec/ios/view_attr_spec.rb
motion-kit-0.10.7 spec/ios/view_attr_spec.rb
motion-kit-0.10.6 spec/ios/view_attr_spec.rb
motion-kit-0.10.5 spec/ios/view_attr_spec.rb
motion-kit-0.10.4 spec/ios/view_attr_spec.rb
motion-kit-0.10.3 spec/ios/view_attr_spec.rb
motion-kit-0.10.2 spec/ios/view_attr_spec.rb
motion-kit-0.10.1 spec/ios/view_attr_spec.rb
motion-kit-0.10.0 spec/ios/view_attr_spec.rb
motion-kit-0.9.6 spec/ios/view_attr_spec.rb
motion-kit-0.9.4 spec/ios/view_attr_spec.rb
motion-kit-0.9.3 spec/ios/view_attr_spec.rb
motion-kit-0.9.2 spec/ios/view_attr_spec.rb
motion-kit-0.9.1 spec/ios/view_attr_spec.rb
motion-kit-0.9.0 spec/ios/view_attr_spec.rb