restore sh test

This commit is contained in:
Jan Viljanen 2018-10-20 08:53:19 +02:00
parent 96e5b8d9b1
commit bd3bc09720

View File

@ -7,6 +7,11 @@ describe Utils::Shell do
expect(subject.profile).to eq("~/.bash_profile") expect(subject.profile).to eq("~/.bash_profile")
end 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 it "returns ~/.bash_profile for Bash" do
ENV["SHELL"] = "/bin/bash" ENV["SHELL"] = "/bin/bash"
expect(subject.profile).to eq("~/.bash_profile") expect(subject.profile).to eq("~/.bash_profile")