1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-23 21:19:17 +02:00

Merge branch 'master' into git-as-dep

This commit is contained in:
Carlos Alexandro Becker 2017-01-17 15:39:14 -02:00 committed by GitHub
commit 34cc110f9d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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