mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
commit
7dce982958
0
config/.test/5/CHANGELOG
Normal file
0
config/.test/5/CHANGELOG
Normal file
0
config/.test/5/CHANGELOG.md
Normal file
0
config/.test/5/CHANGELOG.md
Normal file
@ -13,7 +13,7 @@ import (
|
||||
|
||||
var (
|
||||
emptyBrew = Homebrew{}
|
||||
filePatterns = []string{"LICENCE*", "LICENSE*", "README*"}
|
||||
filePatterns = []string{"LICENCE*", "LICENSE*", "README*", "CHANGELOG*"}
|
||||
)
|
||||
|
||||
// Homebrew contains the brew section
|
||||
|
@ -84,6 +84,20 @@ func TestFillFilesArbitratryENNoSuffix(t *testing.T) {
|
||||
assert.Equal([]string{"LICENCE"}, config.Files)
|
||||
}
|
||||
|
||||
func TestFillFilesChangelog(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
cwd, _ := os.Getwd()
|
||||
os.Chdir("./.test/5")
|
||||
defer os.Chdir(cwd)
|
||||
|
||||
config := ProjectConfig{}
|
||||
err := config.fillFiles()
|
||||
|
||||
assert.NoError(err)
|
||||
assert.Equal([]string{"CHANGELOG", "CHANGELOG.md"}, config.Files)
|
||||
}
|
||||
|
||||
func TestValidadeMissingBinaryName(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user