This commit is contained in:
motemen 2014-05-03 18:09:08 +09:00
parent 106b7cf7d3
commit 853d3527f8

View file

@ -11,5 +11,5 @@ func TestNewLocalRepository(t *testing.T) {
r, err := LocalRepositoryFromFullPath("/repos/github.com/motemen/ghq")
Expect(err).To(BeNil())
Expect(r.NonHostPath()).To(Equal("motemen/ghq"))
Expect(r.Subpaths()).To(Equal([]string{"github.com/motemen/ghq", "motemen/ghq", "ghq"}))
Expect(r.Subpaths()).To(Equal([]string{"ghq", "motemen/ghq", "github.com/motemen/ghq"}))
}