1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
goreleaser/internal/testlib/mktemp_test.go
Carlos Alexandro Becker d85a9001ec
removing all assert.New because vet shadow complains about this now
aaaaaaaaaaarhhhhhhhhgttt
2017-09-26 19:24:49 -03:00

20 lines
326 B
Go

package testlib
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestMkTemp(t *testing.T) {
current, err := os.Getwd()
assert.NoError(t, err)
folder, back := Mktmp(t)
assert.NotEmpty(t, folder)
back()
newCurrent, err := os.Getwd()
assert.NoError(t, err)
assert.Equal(t, current, newCurrent)
}