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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user