aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-11-17 19:50:04 +0000
committerGitHub2017-11-17 19:50:04 +0000
commit889fc8190603dc277ed5f5beee94e667e81e64f8 (patch)
treeb6aea064c43ffdc3129b7a5f8706e36e6f8b8f47 /Library/Homebrew/test
parenta582be054cdf61b4d05e3ea698d6918c7d35e0c3 (diff)
parent9ebf3388040f696f61144c5baf50673fcadadff6 (diff)
downloadbrew-889fc8190603dc277ed5f5beee94e667e81e64f8.tar.bz2
Merge pull request #3449 from MikeMcQuaid/diagostic-fix-paths
diagnostic: fix paths usage.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/diagnostic_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/diagnostic_spec.rb b/Library/Homebrew/test/diagnostic_spec.rb
index 8a25413ed..f347010a9 100644
--- a/Library/Homebrew/test/diagnostic_spec.rb
+++ b/Library/Homebrew/test/diagnostic_spec.rb
@@ -194,7 +194,7 @@ describe Homebrew::Diagnostic::Checks do
FileUtils.chmod 0755, cmd
end
- ENV["PATH"] = [path1, path2, ENV["PATH"]].join File::PATH_SEPARATOR
+ allow(Tap).to receive(:cmd_directories).and_return([path1, path2])
expect(subject.check_for_external_cmd_name_conflict)
.to match("brew-foo")