}) }) Describe("removing", func() { Context("when removing the property succeeds", func() { BeforeEach(func() { fakeContainer.RemovePropertyReturns(nil) }) It("returns the property from the container", func() { err := container.RemoveProperty("some-property") Ω(err).ShouldNot(HaveOccurred()) Ω(fakeContainer.RemovePropertyCallCount()).Should(Equal(1)) name := fakeContainer.RemovePropertyArgsForCall(0) Ω(name).Should(Equal("some-property")) }) itResetsGraceTimeWhenHandling(func() { err := container.RemoveProperty("some-property") Ω(err).ShouldNot(HaveOccurred()) }) itFailsWhenTheContainerIsNotFound(func() error { return container.RemoveProperty("some-property") }) }) Context("when setting the property fails", func() { BeforeEach(func() {