From bd3bc09720c0adc764b7082622cdedc933d0d28e Mon Sep 17 00:00:00 2001 From: Jan Viljanen <527069+javian@users.noreply.github.com> Date: Sat, 20 Oct 2018 08:53:19 +0200 Subject: [PATCH] restore sh test --- Library/Homebrew/test/utils/shell_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/test/utils/shell_spec.rb b/Library/Homebrew/test/utils/shell_spec.rb index b2e1a481c6..e22c2efa4f 100644 --- a/Library/Homebrew/test/utils/shell_spec.rb +++ b/Library/Homebrew/test/utils/shell_spec.rb @@ -7,6 +7,11 @@ describe Utils::Shell do expect(subject.profile).to eq("~/.bash_profile") end + it "returns ~/.bash_profile by default" do + ENV["SHELL"] = "/bin/sh" + expect(subject.profile).to eq("~/.bash_profile") + end + it "returns ~/.bash_profile for Bash" do ENV["SHELL"] = "/bin/bash" expect(subject.profile).to eq("~/.bash_profile")