diff options
| author | Mike McQuaid | 2017-11-17 17:41:58 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-11-17 17:41:58 +0000 |
| commit | 9ebf3388040f696f61144c5baf50673fcadadff6 (patch) | |
| tree | c3ce8fac38dd2bd7f2fa89887caddce61f81c409 /Library/Homebrew/test | |
| parent | 2225febfb396f7db3ccf0c68feae6143128d9935 (diff) | |
| download | brew-9ebf3388040f696f61144c5baf50673fcadadff6.tar.bz2 | |
diagnostic: fix paths usage.
- Don't allow taking an argument. This doesn't work and never has as it
caches the result regardless of the argument.
- Don't rely on the PATH to check for external commands.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/diagnostic_spec.rb | 2 |
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") |
