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:
parent
1fdeba7369
commit
d619efdd94
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user