1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-31 01:53:50 +02:00

improved test

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

View File

@ -15,7 +15,9 @@ func TestCurrentTag(t *testing.T) {
func TestPreviousTag(t *testing.T) {
assert := assert.New(t)
tag, err := previousTag("v0.2.0")
tag, err := currentTag()
assert.NoError(err)
tag, err = previousTag(tag)
assert.NoError(err)
assert.NotEmpty(tag)
}