spec/uiview_animation_spec.rb in sugarcube-0.18.7 vs spec/uiview_animation_spec.rb in sugarcube-0.18.8

- old
+ new

@@ -52,6 +52,15 @@ @after_called = :animating } @after_called.should == true end + it 'should not animate if duration is 0, and after: is not required' do + @after_called = false + UIView.animate(duration: 0.0) { + @view.frame = [[0, 0], [0, 0]] + @after_called = true + } + @after_called.should == true + end + end