spec/unit/screen_spec.rb in ProMotion-2.0.1 vs spec/unit/screen_spec.rb in ProMotion-2.1.0.beta1
- old
+ new
@@ -58,10 +58,10 @@
end
# Issue https://github.com/clearsightstudio/ProMotion/issues/109
it "#should_autorotate should fire when shouldAutorotate fires when in a navigation bar" do
parent_screen = BasicScreen.new(nav_bar: true)
- parent_screen.open @screen
+ parent_screen.open @screen, animated: false
@screen.mock!(:should_autorotate) { true.should == true }
parent_screen.navigationController.shouldAutorotate
end
# <= iOS 5 only