Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Feb 7, 2017
1 parent ed86962 commit 81b0dbb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bundle/bundle_test.go
Expand Up @@ -10,8 +10,6 @@ import (
)

func TestSuccessfullGitBundles(t *testing.T) {
home := home()

table := []struct {
line, result string
}{
Expand All @@ -20,21 +18,22 @@ func TestSuccessfullGitBundles(t *testing.T) {
"jvm.plugin.zsh",
},
{
"caarlos0/zsh-open-pr kind:path",
"caarlos0/jvm kind:path",
"export PATH=\"",
},
{
"caarlos0/zsh-mkc kind:path branch:gh-pages",
"caarlos0/jvm kind:path branch:gh-pages",
"export PATH=\"",
},
{
"caarlos0/zsh-pg kind:dummy",
"caarlos0/jvm kind:dummy",
"",
},
}
for _, row := range table {
t.Run(row.line, func(t *testing.T) {
assert := assert.New(t)
home := home()
result, err := bundle.New(home, row.line).Get()
assert.Contains(result, row.result)
assert.NoError(err)
Expand Down

0 comments on commit 81b0dbb

Please sign in to comment.