1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-16 03:52:12 +02:00

improved test

This commit is contained in:
Carlos Alexandro Becker 2017-01-15 15:03:12 -02:00
parent 644978173f
commit 9a7277c4ae
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -8,7 +8,11 @@ import (
func TestLog(t *testing.T) {
assert := assert.New(t)
log, err := log("v0.1.9", "v0.2.0")
tag, err := currentTag()
assert.NoError(err)
tagb, err := previousTag(tag)
assert.NoError(err)
log, err := log(tagb, tag)
assert.NoError(err)
assert.NotEmpty(log)
}