1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-13 13:48:40 +02:00

added more tests

This commit is contained in:
Carlos Alexandro Becker 2017-04-21 12:02:48 -03:00
parent a0ea5286ac
commit 87dafe1928
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -116,7 +116,7 @@ func TestRunPipe(t *testing.T) {
assert.True(client.CreatedFile)
}
func TestRunPipeBrewNotSetup(t *testing.T) {
func TestRunPipeNoDarwin64Build(t *testing.T) {
assert := assert.New(t)
var ctx = &context.Context{
Config: config.Project{
@ -137,6 +137,17 @@ func TestRunPipeBrewNotSetup(t *testing.T) {
assert.False(client.CreatedFile)
}
func TestRunPipeBrewNotSetup(t *testing.T) {
assert := assert.New(t)
var ctx = &context.Context{
Config: config.Project{},
Publish: true,
}
client := &DummyClient{}
assert.NoError(doRun(ctx, client))
assert.False(client.CreatedFile)
}
func TestRunPipeNoDarwinBuild(t *testing.T) {
assert := assert.New(t)
var ctx = &context.Context{}