Expect(appRepo.CreateCallCount()).To(Equal(1)) params := appRepo.CreateArgsForCall(0) Expect(*params.Diego).To(BeTrue()) }) It("sets docker_image", func() { callPush("testApp", "-o", "sample/dockerImage") params := appRepo.CreateArgsForCall(0) Expect(*params.DockerImage).To(Equal("sample/dockerImage")) }) It("does not upload appbits", func() { callPush("testApp", "--docker-image", "sample/dockerImage") Expect(actor.UploadAppCallCount()).To(Equal(0)) Expect(ui.Outputs).ToNot(ContainSubstrings( []string{"Uploading testApp"}, )) }) }) Context("when health-check-type '-u' or '--health-check-type' is supplied", func() { It("shows error if value is not 'port' or none'", func() { callPush("app-name", "-u", "bad-value") Ω(ui.Outputs).To(ContainSubstrings([]string{"Error", "Invalid health-check-type", "bad-value"})) }) It("does not show error if value is 'port' or none'", func() { callPush("app-name", "--health-check-type", "port")