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() testassert.SliceContains(ui.Outputs, testassert.Lines{ {"Getting routes", "my-user"}, {"host", "domain", "apps"}, {"hostname-1", "example.com", "dora"}, {"hostname-2", "cookieclicker.co", "dora", "bora"}, }) }) }) Context("when there are not routes", func() {