Update fish test now that magic env var is not used

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire
2016-09-27 16:13:26 -07:00
parent b7f9de147e
commit f4e482a68f

View File

@@ -19,10 +19,7 @@ func TestDetectBash(t *testing.T) {
func TestDetectFish(t *testing.T) {
defer func(shell string) { os.Setenv("SHELL", shell) }(os.Getenv("SHELL"))
os.Setenv("SHELL", "/bin/bash")
defer func(fishDir string) { os.Setenv("__fish_bin_dir", fishDir) }(os.Getenv("__fish_bin_dir"))
os.Setenv("__fish_bin_dir", "/usr/local/Cellar/fish/2.2.0/bin")
os.Setenv("SHELL", "/bin/fish")
shell, err := Detect()