spec/ios/remove_layout_spec.rb in motion-kit-0.12.0 vs spec/ios/remove_layout_spec.rb in motion-kit-0.13.0

- old
+ new

@@ -7,18 +7,22 @@ @subject.get(:label).should.be.kind_of(UILabel) @subject.remove_label @subject.get(:label).should.be.nil end - it 'should remove the #image view' do - @subject.get(:image).should.be.kind_of(UIImageView) - @subject.remove_image + it 'should forget the #image view' do + image = @subject.get(:image) + image.should.be.kind_of(UIImageView) + @subject.forget_image @subject.get(:image).should.be.nil + image.superview.should.not.be.nil end - it 'should remove the #view view' do - @subject.get(:view).should.be.kind_of(UIView) + it 'should remove the #view from the hierarchy' do + view = @subject.get(:view) + view.should.be.kind_of(UIView) @subject.remove_view @subject.get(:view).should.be.nil + view.superview.should.be.nil end end