1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00

test: added failing test for #917

This commit is contained in:
Carlos Alexandro Becker 2019-01-10 17:08:08 -02:00
parent 1fdeba7369
commit d619efdd94
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -204,6 +204,21 @@ func TestDefaultPreReleaseAuto(t *testing.T) {
assert.NoError(t, Pipe{}.Default(ctx))
assert.Equal(t, true, ctx.PreRelease)
})
t.Run("auto-rc", func(t *testing.T) {
var ctx = context.New(config.Project{
Release: config.Release{
GitHub: config.Repo{
Name: "foo",
Owner: "foo",
},
Prerelease: "auto",
},
})
ctx.Git.CurrentTag = "v1.0.1-rc1"
assert.NoError(t, Pipe{}.Default(ctx))
assert.Equal(t, true, ctx.PreRelease)
})
}
func TestDefaultPipeDisabled(t *testing.T) {