mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
test: Use multiple calls to assert.NotEmpty()
assert.NotEmpty() was being used as if it would check multiple arguments. In actuality, it checks the second argument and, if it determines that it is empty, fails the test with an error message containing all subsequent arguments.
This commit is contained in:
parent
e079dca3ed
commit
9b4cf40ef6
@ -37,13 +37,10 @@ func TestFillBasicData(t *testing.T) {
|
||||
assert.Contains(t, ctx.Config.Brew.Install, "bin.install \"goreleaser\"")
|
||||
assert.Empty(t, ctx.Config.Dockers)
|
||||
assert.Equal(t, "https://github.com", ctx.Config.GitHubURLs.Download)
|
||||
assert.NotEmpty(
|
||||
t,
|
||||
ctx.Config.Archive.NameTemplate,
|
||||
ctx.Config.Builds[0].Ldflags,
|
||||
ctx.Config.Archive.Files,
|
||||
ctx.Config.Dist,
|
||||
)
|
||||
assert.NotEmpty(t, ctx.Config.Archive.NameTemplate)
|
||||
assert.NotEmpty(t, ctx.Config.Builds[0].Ldflags)
|
||||
assert.NotEmpty(t, ctx.Config.Archive.Files)
|
||||
assert.NotEmpty(t, ctx.Config.Dist)
|
||||
}
|
||||
|
||||
func TestFillPartial(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user