git-lfs/commands/version_test.go
2015-03-19 13:30:55 -06:00

25 lines
577 B
Go

package commands
import (
"fmt"
"github.com/github/git-lfs/lfs"
"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 = lfs.UserAgent
cmd = repo.Command("version", "--comics")
cmd.Output = fmt.Sprintf("%s\nNothing may see Gah Lak Tus and survive!", lfs.UserAgent)
cmd = repo.Command("version", "-c")
cmd.Output = fmt.Sprintf("%s\nNothing may see Gah Lak Tus and survive!", lfs.UserAgent)
}