diff options
| author | Misty De Meo | 2016-09-15 17:54:47 +1000 |
|---|---|---|
| committer | Misty De Meo | 2016-09-16 13:46:59 +1000 |
| commit | 8a0861feab37b850059d29a0254f5c480e03d346 (patch) | |
| tree | e2087a030ab0e95d57bbbfb0fd2593bc401c5102 /Library/Homebrew/test | |
| parent | 099295163412b19470c500406738c50c2fb2fc8f (diff) | |
| download | brew-8a0861feab37b850059d29a0254f5c480e03d346.tar.bz2 | |
Warn when using Xcode 8 without CLT on 10.11
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_os_mac_diagnostic.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_os_mac_diagnostic.rb b/Library/Homebrew/test/test_os_mac_diagnostic.rb index a52179ac6..f7d43c4c7 100644 --- a/Library/Homebrew/test/test_os_mac_diagnostic.rb +++ b/Library/Homebrew/test/test_os_mac_diagnostic.rb @@ -38,4 +38,12 @@ class OSMacDiagnosticChecksTest < Homebrew::TestCase MacOS::XQuartz.stubs(:version).returns("2.7.10_beta2") assert_match "The following beta release of XQuartz is installed: 2.7.10_beta2", @checks.check_for_beta_xquartz end + + def test_check_xcode_8_without_clt_on_el_capitan + MacOS.stubs(:version).returns OS::Mac::Version.new("10.11") + MacOS::Xcode.stubs(:installed?).returns true + MacOS::Xcode.stubs(:version).returns "8.0" + MacOS::Xcode.stubs(:without_clt?).returns true + assert_match "You have Xcode 8 installed without the CLT", @checks.check_xcode_8_without_clt_on_el_capitan + end end |
