application.PackageUpdatedAt = &now appSummaryRepo.GetSummarySummary = application requirementsFactory.Application = application updateCommandDependency(false) }) It("displays nice output when the app is stopped", func() { appSummaryRepo.GetSummaryErrorCode = errors.APP_STOPPED updateCommandDependency(false) runCommand("my-app") Expect(appSummaryRepo.GetSummaryAppGuid).To(Equal("my-app-guid")) Expect(appInstancesRepo.GetInstancesArgsForCall(0)).To(Equal("my-app-guid")) Expect(ui.Outputs).To(ContainSubstrings( []string{"Showing health and status", "my-app", "my-org", "my-space", "my-user"}, []string{"state", "stopped"}, []string{"instances", "0/2"}, []string{"usage", "256M x 2 instances"}, []string{"no running instances"}, )) }) It("displays nice output when the app has not yet finished staging", func() { appSummaryRepo.GetSummaryErrorCode = errors.APP_NOT_STAGED runCommand("my-app") Expect(appSummaryRepo.GetSummaryAppGuid).To(Equal("my-app-guid"))