mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-20 03:59:26 +02:00
more renames
This commit is contained in:
parent
f95832a7ac
commit
5974b4570c
@ -10,17 +10,17 @@ func TestRepoName(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
name, err := remoteRepo()
|
||||
assert.NoError(err)
|
||||
assert.Equal("goreleaser/releaser", name)
|
||||
assert.Equal("goreleaser/goreleaser", name)
|
||||
}
|
||||
|
||||
func TestExtractReporFromGitURL(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
url := extractRepoFromURL("git@github.com:goreleaser/releaser.git")
|
||||
assert.Equal("goreleaser/releaser", url)
|
||||
url := extractRepoFromURL("git@github.com:goreleaser/goreleaser.git")
|
||||
assert.Equal("goreleaser/goreleaser", url)
|
||||
}
|
||||
|
||||
func TestExtractReporFromHttpsURL(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
url := extractRepoFromURL("https://github.com/goreleaser/goreleaser.git")
|
||||
assert.Equal("goreleaser/releaser", url)
|
||||
assert.Equal("goreleaser/goreleaser", url)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user