sugarcube 0.18.7 → 0.18.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sugarcube/uiview.rb +1 -1
- data/lib/sugarcube/version.rb +1 -1
- data/spec/uiview_animation_spec.rb +9 -0
- metadata +1 -1
data/lib/sugarcube/uiview.rb
CHANGED
data/lib/sugarcube/version.rb
CHANGED
@@ -54,4 +54,13 @@ describe "UIView animation methods" do
|
|
54
54
|
@after_called.should == true
|
55
55
|
end
|
56
56
|
|
57
|
+
it 'should not animate if duration is 0, and after: is not required' do
|
58
|
+
@after_called = false
|
59
|
+
UIView.animate(duration: 0.0) {
|
60
|
+
@view.frame = [[0, 0], [0, 0]]
|
61
|
+
@after_called = true
|
62
|
+
}
|
63
|
+
@after_called.should == true
|
64
|
+
end
|
65
|
+
|
57
66
|
end
|