diff options
| author | Mike McQuaid | 2017-05-27 13:34:59 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-05-27 13:34:59 +0100 | 
| commit | 945cfc7cb7b9d979a82ecb5a10d5ed35f8e5745a (patch) | |
| tree | 0be7422eb61272bdb0233b5dd72977e58165bc3d /Library/Homebrew/test | |
| parent | fb33acbbe47162adf90e92cbb6b244f26a5a346e (diff) | |
| download | brew-945cfc7cb7b9d979a82ecb5a10d5ed35f8e5745a.tar.bz2 | |
diagnostic: move some more macOS doctor checks.
Move some `brew doctor` checks that are pretty macOS specific so they
are only run on macOS.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/diagnostic_spec.rb | 7 | ||||
| -rw-r--r-- | Library/Homebrew/test/os/mac/diagnostic_spec.rb | 6 | 
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 | 
