}) }) Describe("setting", func() { Context("when setting the property succeeds", func() { BeforeEach(func() { fakeContainer.SetPropertyReturns(nil) }) It("sets the property on the container", func() { err := container.SetProperty("some-property", "some-value") Ω(err).ShouldNot(HaveOccurred()) Ω(fakeContainer.SetPropertyCallCount()).Should(Equal(1)) name, value := fakeContainer.SetPropertyArgsForCall(0) Ω(name).Should(Equal("some-property")) Ω(value).Should(Equal("some-value")) }) itResetsGraceTimeWhenHandling(func() { err := container.SetProperty("some-property", "some-value") Ω(err).ShouldNot(HaveOccurred()) }) itFailsWhenTheContainerIsNotFound(func() error { return container.SetProperty("some-property", "some-value") }) }) Context("when setting the property fails", func() {