spaceRequirement.GetSpaceReturns(space) spaceQuota = models.SpaceQuota{ Name: "runaway", GUID: "runaway-guid", MemoryLimit: 102400, InstanceMemoryLimit: -1, RoutesLimit: 111, ServicesLimit: 222, NonBasicServicesAllowed: false, AppInstanceLimit: 7, ReservedRoutePortsLimit: "7", } quotaRepo.FindByGUIDReturns(spaceQuota, nil) }) JustBeforeEach(func() { executeErr = cmd.Execute(flagContext) }) Context("when logged in and an org is targeted", func() { BeforeEach(func() { err := flagContext.Parse("my-space") Expect(err).NotTo(HaveOccurred()) cmd.Requirements(reqFactory, flagContext) }) Context("when the guid flag is passed", func() { BeforeEach(func() {