1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-06-06 18:56:25 +02:00

test: added test for dash version on deb pipe as well

This commit is contained in:
Carlos Alexandro Becker 2018-03-28 14:26:43 -03:00 committed by Carlos Alexandro Becker
parent fc4cd13a24
commit 327533fa21

View File

@ -63,6 +63,13 @@ func TestDeb(t *testing.T) {
}
}
func TestDebVersionWithDash(t *testing.T) {
info := exampleInfo()
info.Version = "1.0.0-beta"
var err = Default.Package(info, ioutil.Discard)
assert.NoError(t, err)
}
func TestControl(t *testing.T) {
var w bytes.Buffer
assert.NoError(t, writeControl(&w, controlData{