git-lfs/commands/version_test.go
2014-06-04 12:57:20 -06:00

21 lines
445 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)
}