spec/ios/remove_layout_spec.rb in motion-kit-0.10.11 vs spec/ios/remove_layout_spec.rb in motion-kit-0.11.0
- old
+ new
@@ -1,8 +1,8 @@
-describe MotionKit::Layout do
+describe 'Remove views' do
before do
- @subject = TestRemoveLayout.new
+ @subject = TestRemoveLayout.new.build
end
it 'should remove the #label view' do
@subject.get(:label).should.be.kind_of(UILabel)
@subject.remove_label
@@ -17,9 +17,8 @@
it 'should remove the #view view' do
@subject.get(:view).should.be.kind_of(UIView)
@subject.remove_view
@subject.get(:view).should.be.nil
- @subject.get(:image).should.be.nil
end
end