diff options
| author | Mark Probst <[email protected]> | 2015-03-04 11:32:56 -0800 |
|---|---|---|
| committer | Mark Probst <[email protected]> | 2015-03-04 15:52:52 -0800 |
| commit | 56ed0b22d7f7ab6185f14e0054346da3ca33c4fa (patch) | |
| tree | ae137d8be149a7a229c7e4c878a422ff263ca7db /status_test.go | |
| parent | eec61815fbc963d0f81a95a9be4b061145541095 (diff) | |
Repository state
Diffstat (limited to 'status_test.go')
| -rw-r--r-- | status_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/status_test.go b/status_test.go index 4be4824..d18fca1 100644 --- a/status_test.go +++ b/status_test.go @@ -12,6 +12,11 @@ func TestStatusFile(t *testing.T) { defer repo.Free() defer os.RemoveAll(repo.Workdir()) + state := repo.State() + if state != RepositoryStateNone { + t.Fatal("Incorrect repository state: ", state) + } + err := ioutil.WriteFile(path.Join(path.Dir(repo.Workdir()), "hello.txt"), []byte("Hello, World"), 0644) checkFatal(t, err) |
