test_helpers.ExecuteCommandWithArgs(statusCommand, []string{"wompy-app"}) Expect(fakeAppExaminer.AppStatusCallCount()).To(Equal(1)) Expect(fakeAppExaminer.AppStatusArgsForCall(0)).To(Equal("wompy-app")) Expect(outputBuffer).To(test_helpers.Say("Docker Image")) Expect(outputBuffer).To(test_helpers.SayLine("dhub/library/wompy-app:latest")) Expect(outputBuffer).To(test_helpers.Say("Annotation")) }) }) Describe("Monitors", func() { It("prints out Monitor None when there is no monitor", func() { sampleAppInfo.Monitor = app_examiner.Monitor{} fakeAppExaminer.AppStatusReturns(sampleAppInfo, nil) test_helpers.ExecuteCommandWithArgs(statusCommand, []string{"wompy-app"}) Expect(outputBuffer).To(test_helpers.Say("Monitor")) Expect(outputBuffer).To(test_helpers.SayLine("None")) }) It("prints out Monitor Port when there is port-only monitor", func() { sampleAppInfo.Monitor = app_examiner.Monitor{ Port: 1234, } fakeAppExaminer.AppStatusReturns(sampleAppInfo, nil)