1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

Merge pull request #18 from goreleaser/more-tests

git log tests
This commit is contained in:
Carlos Alexandro Becker 2016-12-31 13:29:44 -02:00 committed by GitHub
commit 9fbb8c312a

20
config/git/log_test.go Normal file
View File

@ -0,0 +1,20 @@
package git
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLog(t *testing.T) {
assert := assert.New(t)
log, err := Log("v0.0.1", "v0.1.0")
assert.NoError(err)
assert.NotEmpty(log)
}
func TestLogInvalidRef(t *testing.T) {
assert := assert.New(t)
log, err := Log("wtfff", "nope")
assert.Error(err)
assert.Empty(log)
}