GUID: "2222", OwningOrganizationGUID: "my-org-guid", Shared: false, }, }, SpaceQuotas: []models.SpaceQuota{ {Name: "space-quota-1", GUID: "space-quota-1-guid", MemoryLimit: 512, InstanceMemoryLimit: -1}, {Name: "space-quota-2", GUID: "space-quota-2-guid", MemoryLimit: 256, InstanceMemoryLimit: 128}, }, } orgRequirement.GetOrganizationReturns(org) }) JustBeforeEach(func() { executeErr = cmd.Execute(flagContext) }) Context("when logged in, and provided the name of an org", func() { BeforeEach(func() { err := flagContext.Parse("my-org") Expect(err).NotTo(HaveOccurred()) cmd.Requirements(reqFactory, flagContext) }) It("shows the org with the given name", func() { Expect(executeErr).NotTo(HaveOccurred()) Expect(ui.Outputs()).To(ContainSubstrings( []string{"Getting info for org", "my-org", "my-user"}, []string{"OK"},