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:
commit
f05d6ca509
@ -2,8 +2,8 @@ package release
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"html/template"
|
||||
"os/exec"
|
||||
"text/template"
|
||||
|
||||
"github.com/goreleaser/goreleaser/context"
|
||||
)
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user