Ω(err).ShouldNot(HaveOccurred()) Ω(fakeConnection.Stopped("some-handle")).Should(ContainElement( fake_connection.StopSpec{ Background: false, Kill: true, }, )) }) Context("when stopping fails", func() { disaster := errors.New("oh no!") BeforeEach(func() { fakeConnection.WhenStopping = func(handle string, background, kill bool) error { return disaster } }) It("returns the error", func() { err := container.Stop(true) Ω(err).Should(Equal(disaster)) }) }) }) Describe("Info", func() { It("sends an info request", func() { infoToReturn := warden.ContainerInfo{ State: "chillin", }