diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-03-11 17:05:16 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-03-11 17:05:16 +0100 |
| commit | d300110b8582cd44511efc26a7a0ce04d409f8ce (patch) | |
| tree | 58652052be2848d110ff3c894517452577f44a95 /status_test.go | |
| parent | 755721e68453c5d6de0681789dbe3307744fc9c4 (diff) | |
| parent | 9eae50f29a69fa47cecf3cf4dfb032414cf27a50 (diff) | |
Merge pull request #178 from schani/master
Fixes and improvements
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) |
