mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
d85a9001ec
aaaaaaaaaaarhhhhhhhhgttt
23 lines
386 B
Go
23 lines
386 B
Go
package git
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGit(t *testing.T) {
|
|
out, err := Run("status")
|
|
assert.NoError(t, err)
|
|
assert.NotEmpty(t, out)
|
|
|
|
out, err = Run("command-that-dont-exist")
|
|
assert.Error(t, err)
|
|
assert.Empty(t, out)
|
|
assert.Equal(
|
|
t,
|
|
"git: 'command-that-dont-exist' is not a git command. See 'git --help'.\n",
|
|
err.Error(),
|
|
)
|
|
}
|