1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/config/config_test.go
Carlos Alexandro Becker 5d087173b4
fixes
2016-12-28 23:50:37 -02:00

19 lines
481 B
Go

package config
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestFixConfig(t *testing.T) {
assert := assert.New(t)
config := fix(ProjectConfig{})
assert.Equal("main.go", config.Main)
assert.Contains(config.Files, "README.md")
assert.Contains(config.Files, "LICENSE.md")
assert.Contains(config.Build.Oses, "darwin")
assert.Contains(config.Build.Oses, "linux")
assert.Contains(config.Build.Arches, "386")
assert.Contains(config.Build.Arches, "amd64")
}