1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

remove : from depends_on

refs https://github.com/goreleaser/goreleaser/issues/86#issuecomment-273221892
This commit is contained in:
Carlos Alexandro Becker 2017-01-17 15:44:32 -02:00
parent e44841b2d1
commit aa1699747e
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const formulae = `class {{ .Name }} < Formula
{{- if .Dependencies }}
{{ range $index, $element := .Dependencies }}
depends_on: "{{ . }}"
depends_on "{{ . }}"
{{- end }}
{{- end }}

View File

@ -51,8 +51,8 @@ func TestFullFormulae(t *testing.T) {
assertDefaultTemplateData(t, formulae)
assert.Contains(formulae, "def caveats")
assert.Contains(formulae, "Here are some caveats")
assert.Contains(formulae, "depends_on: \"gtk\"")
assert.Contains(formulae, "depends_on: \"git\"")
assert.Contains(formulae, "depends_on \"gtk\"")
assert.Contains(formulae, "depends_on \"git\"")
}
func TestFormulaeNoCaveats(t *testing.T) {