1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-26 04:22:05 +02:00
goreleaser/pipeline/defaults/remote_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

24 lines
590 B
Go

package defaults
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRepoName(t *testing.T) {
repo, err := remoteRepo()
assert.NoError(t, err)
assert.Equal(t, "goreleaser/goreleaser", repo.String())
}
func TestExtractReporFromGitURL(t *testing.T) {
repo := extractRepoFromURL("git@github.com:goreleaser/goreleaser.git")
assert.Equal(t, "goreleaser/goreleaser", repo.String())
}
func TestExtractReporFromHttpsURL(t *testing.T) {
repo := extractRepoFromURL("https://github.com/goreleaser/goreleaser.git")
assert.Equal(t, "goreleaser/goreleaser", repo.String())
}