1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

chore: added more test

Added a test to cover the git.Clean function..
Refs #284
This commit is contained in:
Carlos Alexandro Becker 2017-10-15 20:47:52 -02:00 committed by Carlos Alexandro Becker
parent 4afd58e49c
commit 1d7b0e072b

View File

@ -28,3 +28,10 @@ func TestRepo(t *testing.T) {
assert.NoError(t, os.Chdir(os.TempDir()))
assert.False(t, IsRepo(), os.TempDir()+" folder should be a git repo")
}
func TestClean(t *testing.T) {
out, err := Clean("asdasd 'ssadas'\nadasd", nil)
assert.NoError(t, err)
assert.Equal(t, "asdasd ssadas", out)
}