Ω(fakeContainer.LimitDiskArgsForCall(0)).Should(Equal(setLimits)) }) itResetsGraceTimeWhenHandling(func() { err := container.LimitDisk(setLimits) Ω(err).ShouldNot(HaveOccurred()) }) itFailsWhenTheContainerIsNotFound(func() error { return container.LimitDisk(garden.DiskLimits{}) }) Context("when limiting the disk fails", func() { BeforeEach(func() { fakeContainer.LimitDiskReturns(errors.New("oh no!")) }) It("fails", func() { err := container.LimitDisk(setLimits) Ω(err).Should(HaveOccurred()) }) }) }) Describe("getting the current disk limits", func() { currentLimits := garden.DiskLimits{ BlockSoft: 1111, BlockHard: 2222, InodeSoft: 3333,