fix(tests): Fixes broken unit test

The new unit test was not passing an explict subcommand arg to the
root command in the unit test.
This commit is contained in:
Taylor Thomas 2017-06-06 22:17:26 -07:00
parent 52a3405b1e
commit 5cfb4e8cf8
1 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,7 @@ func TestRootCmd(t *testing.T) {
}{
{
name: "defaults",
args: []string{"home"},
home: filepath.Join(os.Getenv("HOME"), "/.helm"),
},
{
@ -365,6 +366,7 @@ func TestRootCmd(t *testing.T) {
},
{
name: "with $HELM_HOME set",
args: []string{"home"},
envars: map[string]string{"HELM_HOME": "/bar"},
home: "/bar",
},