From c843fd2f12cdff5d0309b1665bb5ad29ac1d8164 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 28 Oct 2017 19:48:21 +0100 Subject: requirement: prepend rather than append PATH. Otherwise this ends up behind e.g. `/usr/bin` so is pretty useless. --- Library/Homebrew/test/requirement_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/requirement_spec.rb b/Library/Homebrew/test/requirement_spec.rb index 11a3da8f4..2d0d86c86 100644 --- a/Library/Homebrew/test/requirement_spec.rb +++ b/Library/Homebrew/test/requirement_spec.rb @@ -138,7 +138,7 @@ describe Requirement do end it "infers path from #satisfy result" do - expect(ENV).to receive(:append_path).with("PATH", Pathname.new("/foo/bar")) + expect(ENV).to receive(:prepend_path).with("PATH", Pathname.new("/foo/bar")) subject.satisfied? subject.modify_build_environment end -- cgit v1.2.3