aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-05-28 17:20:47 +0100
committerGitHub2017-05-28 17:20:47 +0100
commit803f9cbf7ba27ec700ffdfffb976d9b60a5f9deb (patch)
tree0be7422eb61272bdb0233b5dd72977e58165bc3d /Library/Homebrew/test
parentfb33acbbe47162adf90e92cbb6b244f26a5a346e (diff)
parent945cfc7cb7b9d979a82ecb5a10d5ed35f8e5745a (diff)
downloadbrew-803f9cbf7ba27ec700ffdfffb976d9b60a5f9deb.tar.bz2
Merge pull request #2685 from MikeMcQuaid/more-macos-doctor
diagnostic: move some more macOS doctor checks.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/diagnostic_spec.rb7
-rw-r--r--Library/Homebrew/test/os/mac/diagnostic_spec.rb6
2 files changed, 6 insertions, 7 deletions
diff --git a/Library/Homebrew/test/diagnostic_spec.rb b/Library/Homebrew/test/diagnostic_spec.rb
index c4373671e..058b9823c 100644
--- a/Library/Homebrew/test/diagnostic_spec.rb
+++ b/Library/Homebrew/test/diagnostic_spec.rb
@@ -90,13 +90,6 @@ describe Homebrew::Diagnostic::Checks do
end
end
- specify "#check_homebrew_prefix" do
- ENV.delete("JENKINS_HOME")
- # the integration tests are run in a special prefix
- expect(subject.check_homebrew_prefix)
- .to match("Your Homebrew's prefix is not /usr/local.")
- end
-
specify "#check_user_path_1" do
bin = HOMEBREW_PREFIX/"bin"
sep = File::PATH_SEPARATOR
diff --git a/Library/Homebrew/test/os/mac/diagnostic_spec.rb b/Library/Homebrew/test/os/mac/diagnostic_spec.rb
index d2b38a332..787f80fec 100644
--- a/Library/Homebrew/test/os/mac/diagnostic_spec.rb
+++ b/Library/Homebrew/test/os/mac/diagnostic_spec.rb
@@ -39,4 +39,10 @@ describe Homebrew::Diagnostic::Checks do
expect(subject.check_xcode_8_without_clt_on_el_capitan)
.to match("You have Xcode 8 installed without the CLT")
end
+
+ specify "#check_homebrew_prefix" do
+ # the integration tests are run in a special prefix
+ expect(subject.check_homebrew_prefix)
+ .to match("Your Homebrew's prefix is not /usr/local.")
+ end
end