Put HelmCommand in Help, not run.Config [#15]

This commit is contained in:
Erin Call
2019-12-26 12:23:56 -08:00
parent b1899dee56
commit 167b53691b
5 changed files with 11 additions and 12 deletions

View File

@@ -63,15 +63,14 @@ func (suite *HelpTestSuite) TestExecute() {
Run().
Times(2)
cfg := Config{
HelmCommand: "help",
}
cfg := Config{}
help := Help{
cmd: mCmd,
HelmCommand: "help",
cmd: mCmd,
}
suite.NoError(help.Execute(cfg))
cfg.HelmCommand = "get down on friday"
help.HelmCommand = "get down on friday"
suite.EqualError(help.Execute(cfg), "unknown command 'get down on friday'")
}