1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/brew/brew_test.go

20 lines
378 B
Go
Raw Normal View History

2016-12-29 14:55:35 +02:00
package brew
import (
"testing"
2016-12-29 14:56:51 +02:00
"github.com/stretchr/testify/assert"
2016-12-29 14:55:35 +02:00
)
func TestNameWithDash(t *testing.T) {
assert.Equal(t, formulaNameFor("some-binary"), "SomeBinary")
}
func TestNameWithUnderline(t *testing.T) {
assert.Equal(t, formulaNameFor("some_binary"), "SomeBinary")
}
func TestSimpleName(t *testing.T) {
assert.Equal(t, formulaNameFor("binary"), "Binary")
}