}) It("returns the error", func() { _, err := container.CurrentBandwidthLimits() Ω(err).Should(Equal(disaster)) }) }) }) Describe("CurrentCPULimits", func() { It("sends an empty limit request and returns its response", func() { limitsToReturn := garden.CPULimits{ LimitInShares: 1, } fakeConnection.CurrentCPULimitsReturns(limitsToReturn, nil) limits, err := container.CurrentCPULimits() Ω(err).ShouldNot(HaveOccurred()) Ω(limits).Should(Equal(limitsToReturn)) }) Context("when the request fails", func() { disaster := errors.New("oh no!") BeforeEach(func() { fakeConnection.CurrentCPULimitsReturns(garden.CPULimits{}, disaster) }) It("returns the error", func() {