sandboxRepo.Destroy("some-sandbox-name")
				Expect(sbox.TeardownCallCount()).To(Equal(1))

				Expect(sandboxRepo.Sandboxes).To(HaveKey("some-sandbox-name"))
			})

			It("does not destroy the namespace", func() {
				sandboxRepo.Destroy("some-sandbox-name")
				Expect(sbox.TeardownCallCount()).To(Equal(1))
				Expect(namespaceRepo.DestroyCallCount()).To(Equal(0))
			})
		})

		Context("when destroying the namespace fails", func() {
			BeforeEach(func() {
				namespaceRepo.DestroyReturns(errors.New("clementine"))
			})

			It("returns a meaningful error", func() {
				err := sandboxRepo.Destroy("some-sandbox-name")
				Expect(err).To(MatchError("namespace destroy: clementine"))
			})

			It("does not remove the sandbox entry", func() {
				sandboxRepo.Destroy("some-sandbox-name")
				Expect(namespaceRepo.DestroyCallCount()).To(Equal(1))

				Expect(sandboxRepo.Sandboxes).To(HaveKey("some-sandbox-name"))
			})
		})
	})