diff options
Diffstat (limited to 'repository_test.go')
| -rw-r--r-- | repository_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/repository_test.go b/repository_test.go index 5a0f920..e403aa9 100644 --- a/repository_test.go +++ b/repository_test.go @@ -92,3 +92,14 @@ func TestRepositorySetConfig(t *testing.T) { t.Fatal("result must be true") } } + +func TestRepositoryItemPath(t *testing.T) { + repo := createTestRepo(t) + defer cleanupTestRepo(t, repo) + + gitDir, err := repo.ItemPath(RepositoryItemGitDir) + checkFatal(t, err) + if gitDir == "" { + t.Error("expected not empty gitDir") + } +} |
