diff --git a/spec/unit/delegate_spec.rb b/spec/unit/delegate_spec.rb index d85eaff..b4ae300 100644 --- a/spec/unit/delegate_spec.rb +++ b/spec/unit/delegate_spec.rb @@ -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