domain := models.DomainFields{Name: "example.com"} domain2 := models.DomainFields{Name: "cookieclicker.co"} app1 := models.ApplicationFields{Name: "dora"} app2 := models.ApplicationFields{Name: "bora"} route := models.Route{} route.Host = "hostname-1" route.Domain = domain route.Apps = []models.ApplicationFields{app1} route2 := models.Route{} route2.Host = "hostname-2" route2.Domain = domain2 route2.Apps = []models.ApplicationFields{app1, app2} routeRepo.Routes = []models.Route{route, route2} }) It("lists routes", func() { runCommand() Expect(ui.Outputs).To(ContainSubstrings( []string{"Getting routes", "my-user"}, []string{"host", "domain", "apps"}, []string{"hostname-1", "example.com", "dora"}, []string{"hostname-2", "cookieclicker.co", "dora", "bora"}, )) }) }) Context("when there are not routes", func() {