1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00
goreleaser/pipeline/release/release_test.go

22 lines
442 B
Go
Raw Normal View History

2016-12-29 11:21:50 -02:00
package release
import (
"fmt"
2016-12-30 12:03:43 -02:00
"testing"
2017-01-02 10:47:19 -02:00
"github.com/stretchr/testify/assert"
2016-12-29 11:21:50 -02:00
)
2017-03-25 20:46:02 -03:00
func TestPipeDescription(t *testing.T) {
2017-03-25 20:43:42 -03:00
assert.NotEmpty(t, Pipe{}.Description())
}
2016-12-29 11:21:50 -02:00
func TestDescription(t *testing.T) {
assert := assert.New(t)
desc := description("0abf342 some message")
assert.Contains(desc, "0abf342 some message")
assert.Contains(desc, "Automated with @goreleaser")
assert.Contains(desc, "go version go1.")
fmt.Println(desc)
}