mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
fix: fixed writing golden files
This commit is contained in:
parent
bac7c6f611
commit
60001bf63c
@ -68,10 +68,12 @@ func TestFullFormulae(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
formulae := out.String()
|
||||
|
||||
bts, err := ioutil.ReadFile("testdata/test.rb")
|
||||
var golden = "testdata/test.rb.golden"
|
||||
if *update {
|
||||
ioutil.WriteFile(golden, []byte(formulae), 0655)
|
||||
}
|
||||
bts, err := ioutil.ReadFile(golden)
|
||||
assert.NoError(t, err)
|
||||
// ioutil.WriteFile("testdata/test.rb", []byte(formulae), 0644)
|
||||
|
||||
assert.Equal(t, string(bts), formulae)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user