git-lfs/commands/version_test.go
2015-01-30 14:08:47 -05:00

25 lines
592 B
Go

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