testassert.SliceDoesNotContain(ui.Outputs, testassert.Lines{ {"FAILED"}, {"hacker-manifesto"}, }) Expect(manifestRepo.ReadManifestArgs.Path).To(Equal("")) Expect(*appRepo.CreatedAppParams().Name).To(Equal("app-name")) }) It("does not create a route when provided the --no-route flag", func() { domain := models.DomainFields{} domain.Name = "bar.cf-app.com" domain.Guid = "bar-domain-guid" domainRepo.FindByNameInOrgDomain = domain routeRepo.FindByHostErr = true appRepo.ReadNotFound = true callPush( "--no-route", "my-new-app", ) Expect(*appRepo.CreatedAppParams().Name).To(Equal("my-new-app")) Expect(routeRepo.CreatedHost).To(Equal("")) Expect(routeRepo.CreatedDomainGuid).To(Equal("")) }) It("maps the root domain route to the app when given the --no-hostname flag", func() { domain := models.DomainFields{} domain.Name = "bar.cf-app.com"