spec/ios/child_layouts_spec.rb in motion-kit-0.14.2 vs spec/ios/child_layouts_spec.rb in motion-kit-0.15.0

- old
+ new

@@ -22,17 +22,29 @@ it ':child_image layout should have a view named :image' do @layout.get(:child_image).get(:image).should.be.kind_of(UIImageView) end + it 'should have initial styles on :label' do + @layout.get(:label).text.should == 'root foo' + end + + it 'should apply tag on :label' do + @layout.get(:label).tag.should == 100 + end + describe 'Calling reapply! on parent layout' do before do @layout.reapply! end it 'should reapply :label on root' do @layout.get(:label).text.should == 'root reapplied' + end + + it 'should apply tag on :label' do + @layout.get(:label).tag.should == 100 end it 'should reapply :label on child layout' do @layout.child_layouts[0].get(:label).text.should == 'reapplied' end