It("returns true", func() {
				result, err := repo.InstanceExists(instanceID)
				Ω(result).Should(BeTrue())
				Ω(err).ShouldNot(HaveOccurred())
			})
		})
	})

	Describe("Delete", func() {
		Context("When the instance exists", func() {
			BeforeEach(func() {
				newTestInstance(instanceID, repo)
			})

			It("deletes the instance data directory", func() {
				repo.Delete(instanceID)
				_, err := os.Stat(path.Join(tmpInstanceDataDir, instanceID))
				Ω(err).To(HaveOccurred())
			})

			It("deletes the instance log directory", func() {
				repo.Delete(instanceID)
				_, err := os.Stat(path.Join(tmpInstanceLogDir, instanceID))
				Ω(err).To(HaveOccurred())
			})

			It("returns no error", func() {
				err := repo.Delete(instanceID)
				Ω(err).ToNot(HaveOccurred())
			})
		})