env-shell: fixed tests

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-04-23 15:04:16 -04:00
parent 6b735677a0
commit 92f6b45de2
1 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,9 @@ func TestCmdEnvBash(t *testing.T) {
set := flag.NewFlagSet("config", 0)
c := cli.NewContext(nil, set, set)
c.App = &cli.App{
Name: "docker-machine-test",
}
cmdEnv(c)
w.Close()
@ -181,6 +184,9 @@ func TestCmdEnvFish(t *testing.T) {
set := flag.NewFlagSet("config", 0)
c := cli.NewContext(nil, set, set)
c.App = &cli.App{
Name: "docker-machine-test",
}
cmdEnv(c)
w.Close()
@ -280,6 +286,9 @@ func TestCmdEnvPowerShell(t *testing.T) {
set := flag.NewFlagSet("config", 0)
set.String("shell", "powershell", "")
c := cli.NewContext(nil, set, set)
c.App = &cli.App{
Name: "docker-machine-test",
}
cmdEnv(c)
w.Close()