git-lfs/commands/version_test.go
2014-06-26 15:00:51 -06:00

24 lines
578 B
Go

package commands
import (
"fmt"
"testing"
)
func TestVersionOnEmptyRepository(t *testing.T) {
repo := NewRepository(t, "empty")
defer repo.Test()
repo.AddPath(repo.Path, ".git")
repo.AddPath(repo.Path, "subdir")
cmd := repo.Command("version")
cmd.Output = fmt.Sprintf("git-media v%s", Version)
cmd = repo.Command("version", "--comics")
cmd.Output = fmt.Sprintf("git-media v%s\nNothing may see Gah Lak Tus and survive!", Version)
cmd = repo.Command("version", "-c")
cmd.Output = fmt.Sprintf("git-media v%s\nNothing may see Gah Lak Tus and survive!", Version)
}