Пример #1
0
			})
		})
	})

	Describe("RemoveProperty", func() {
		itRetries(func() error {
			return conn.RemoveProperty("la-contineur", "some-name")
		}, func(err error) {
			innerConnection.RemovePropertyReturns(err)
		}, func() int {
			return innerConnection.RemovePropertyCallCount()
		}, func() {
			It("calls through to garden", func() {
				Ω(innerConnection.RemovePropertyCallCount()).Should(Equal(1))

				handle, setName := innerConnection.RemovePropertyArgsForCall(0)
				Ω(handle).Should(Equal("la-contineur"))
				Ω(setName).Should(Equal("some-name"))
			})
		})
	})

	Describe("Stop", func() {
		itRetries(func() error {
			return conn.Stop("la-contineur", true)
		}, func(err error) {
			innerConnection.StopReturns(err)
		}, func() int {
			return innerConnection.StopCallCount()
		}, func() {
			It("calls through to garden", func() {