1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +02:00

fix: broken test

Was using a constant that no longer exists
This commit is contained in:
Carlos Alexandro Becker
2017-12-02 20:09:29 -02:00
committed by Carlos Alexandro Becker
parent 1ed299a6d7
commit 65a8e96779

View File

@@ -9,7 +9,6 @@ import (
"github.com/goreleaser/goreleaser/config"
"github.com/goreleaser/goreleaser/context"
"github.com/goreleaser/goreleaser/internal/testlib"
"github.com/goreleaser/goreleaser/pipeline/defaults"
"github.com/stretchr/testify/assert"
)
@@ -57,7 +56,7 @@ func TestNoTagsSnapshot(t *testing.T) {
var ctx = &context.Context{
Config: config.Project{
Snapshot: config.Snapshot{
NameTemplate: defaults.SnapshotNameTemplate,
NameTemplate: "SNAPSHOT-{{.Commit}}",
},
},
Snapshot: true,
@@ -95,7 +94,7 @@ func TestNoTagsNoSnapshot(t *testing.T) {
var ctx = &context.Context{
Config: config.Project{
Snapshot: config.Snapshot{
NameTemplate: defaults.SnapshotNameTemplate,
NameTemplate: "SNAPSHOT-{{.Commit}}",
},
},
Snapshot: false,