mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-04 19:45:35 +08:00
Added delegate test
This commit is contained in:
@@ -26,4 +26,13 @@ describe "PM::Delegate" do
|
||||
|
||||
end
|
||||
|
||||
it "should set home_screen when opening a new screen" do
|
||||
|
||||
@subject.application(UIApplication.sharedApplication, didFinishLaunchingWithOptions: nil)
|
||||
@subject.open BasicScreen.new(nav_bar: true)
|
||||
@subject.home_screen.should.be.kind_of BasicScreen
|
||||
@subject.window.rootViewController.should.be.kind_of UINavigationController
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user