From 76db07e1b5ef096317701a95285b04aa7bf83187 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 10 Mar 2017 07:28:55 -0800 Subject: env: make prepend_path ignore system paths `ENV.prepend_path "PATH", which("emacs").dirname` in the emacs requirement was causing us to end up invoking /usr/bin/clang instead of /usr/local/Homebrew/Library/Homebrew/shims/super/clang. --- Library/Homebrew/test/ENV_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/ENV_spec.rb b/Library/Homebrew/test/ENV_spec.rb index 7b50ca1d4..07f6cdb6b 100644 --- a/Library/Homebrew/test/ENV_spec.rb +++ b/Library/Homebrew/test/ENV_spec.rb @@ -115,11 +115,11 @@ shared_examples EnvActivation do describe "#prepend_path" do it "prepends to a path" do - subject.prepend_path "FOO", "/usr/bin" - expect(subject["FOO"]).to eq("/usr/bin") + subject.prepend_path "FOO", "/usr/libexec" + expect(subject["FOO"]).to eq("/usr/libexec") - subject.prepend_path "FOO", "/bin" - expect(subject["FOO"]).to eq("/bin#{File::PATH_SEPARATOR}/usr/bin") + subject.prepend_path "FOO", "/usr" + expect(subject["FOO"]).to eq("/usr#{File::PATH_SEPARATOR}/usr/libexec") end end -- cgit v1.2.3