1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

Merge remote-tracking branch 'origin/master' into naked-release

This commit is contained in:
Carlos Alexandro Becker 2017-07-04 21:29:53 -03:00
commit f05d6ca509
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 13 additions and 2 deletions

View File

@ -2,8 +2,8 @@ package release
import (
"bytes"
"html/template"
"os/exec"
"text/template"
"github.com/goreleaser/goreleaser/context"
)

View File

@ -18,7 +18,18 @@ func TestDescribeBody(t *testing.T) {
assert.NoError(err)
assert.Contains(out.String(), changelog)
assert.Contains(out.String(), "Automated with [GoReleaser]")
assert.Contains(out.String(), "Built with go version go1.8")
assert.Contains(out.String(), "Built with go version go1.")
}
func TestDontEscapeHTML(t *testing.T) {
var assert = assert.New(t)
var changelog = "<h1>test</h1>"
var ctx = &context.Context{
ReleaseNotes: changelog,
}
out, err := describeBody(ctx)
assert.NoError(err)
assert.Contains(out.String(), changelog)
}
func TestGoVersionFails(t *testing.T) {