From 945cfc7cb7b9d979a82ecb5a10d5ed35f8e5745a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 27 May 2017 13:34:59 +0100 Subject: diagnostic: move some more macOS doctor checks. Move some `brew doctor` checks that are pretty macOS specific so they are only run on macOS. --- Library/Homebrew/test/diagnostic_spec.rb | 7 ------- Library/Homebrew/test/os/mac/diagnostic_spec.rb | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'Library/Homebrew/test') 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 -- cgit v1.2.3