1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-09 01:16:05 +02:00
Files
goreleaser/brew/brew_test.go

20 lines
378 B
Go
Raw Normal View History

2016-12-29 10:55:35 -02:00
package brew
import (
"testing"
2016-12-29 10:56:51 -02:00
"github.com/stretchr/testify/assert"
2016-12-29 10: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")
}