})
		})
	})

	Describe("Get", func() {
		var repo namespace.Repository

		BeforeEach(func() {
			var err error
			repo, err = namespace.NewRepository(repoDir)
			Expect(err).NotTo(HaveOccurred())
		})

		Context("when the namespace file does not exist", func() {
			It("returns ErrNotExist", func() {
				_, err := repo.Get("test-ns")
				Expect(err).To(HaveOccurred())
				Expect(os.IsNotExist(err)).To(BeTrue())
			})
		})

		Context("when the namespace file exists", func() {
			BeforeEach(func() {
				f, err := os.Create(filepath.Join(repoDir, "test-ns"))
				Expect(err).NotTo(HaveOccurred())
				Expect(f.Close()).To(Succeed())
			})

			It("returns the namespace", func() {
				ns, err := repo.Get("test-ns")
				Expect(err).NotTo(HaveOccurred())