1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00

more asserts

This commit is contained in:
Carlos Alexandro Becker 2017-04-15 14:03:50 -03:00
parent e48434e8e0
commit 9904be55a9
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -48,6 +48,7 @@ func TestSingleCommit(t *testing.T) {
Config: config.Project{},
}
assert.NoError(Pipe{}.Run(ctx))
assert.Equal("v0.0.1", ctx.Git.CurrentTag)
}
func TestNewRepository(t *testing.T) {
@ -72,6 +73,7 @@ func TestInvalidTagFormat(t *testing.T) {
Config: config.Project{},
}
assert.EqualError(Pipe{}.Run(ctx), "sadasd is not in a valid version format")
assert.Equal("sadasd", ctx.Git.CurrentTag)
}
func createAndChdir(t *testing.T) (current string, back func()) {