spec/main_spec.rb in teacup-0.3.10 vs spec/main_spec.rb in teacup-0.3.11
- old
+ new
@@ -20,14 +20,14 @@
end
describe "view controller" do
it "should be able to rotate" do
- @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIDeviceOrientationPortrait).should == true
- @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIDeviceOrientationLandscapeLeft).should == true
- @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIDeviceOrientationLandscapeRight).should == true
- @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIDeviceOrientationPortraitUpsideDown).should == false
+ @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIInterfaceOrientationPortrait).should == true
+ @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIInterfaceOrientationLandscapeRight).should == true
+ @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIInterfaceOrientationLandscapeLeft).should == true
+ @view_ctrlr.shouldAutorotateToInterfaceOrientation(UIInterfaceOrientationPortraitUpsideDown).should == nil
end
end
describe "root view" do
@@ -129,10 +129,10 @@
describe "background view in landscape" do
before do
@background = @app.windows[0].subviews[0].subviews[0]
@view_ctrlr.landscape_only
- UIApplication.sharedApplication.setStatusBarOrientation(UIDeviceOrientationLandscapeLeft, animated:false)
+ UIApplication.sharedApplication.setStatusBarOrientation(UIInterfaceOrientationLandscapeLeft, animated:false)
end
it "should be in landscape" do
# the rest of these tests *pass*, but the device orientation isn't actually
# updated to be landscape yet... :-/