Describe("when the app is not running", func() { BeforeEach(func() { application := models.Application{} application.Name = "my-app" application.Guid = "my-app-guid" application.State = "stopped" application.InstanceCount = 2 application.RunningInstances = 0 application.Memory = 256 appSummaryRepo.GetSummarySummary = application requirementsFactory.Application = application }) It("displays nice output when the app is stopped", func() { appSummaryRepo.GetSummaryErrorCode = errors.APP_STOPPED runCommand("my-app") Expect(appSummaryRepo.GetSummaryAppGuid).To(Equal("my-app-guid")) Expect(appInstancesRepo.GetInstancesAppGuid).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() {