Merge pull request #12288 from carlocab/ruby-diagnostic

extend/os/mac/diagnostic: fix unqualified macOS version reference
This commit is contained in:
Bo Anderson 2021-10-21 15:34:21 +01:00 committed by GitHub
commit c6b287590d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ module Homebrew
return if Homebrew::EnvConfig.developer? && OS::Mac.version.prerelease?
<<~EOS
Ruby version #{RUBY_VERSION} is unsupported on #{MacOS.version}. Homebrew
Ruby version #{RUBY_VERSION} is unsupported on macOS #{MacOS.version}. Homebrew
is developed and tested on Ruby #{required_version}, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.

View File

@ -38,7 +38,7 @@ describe Homebrew::Diagnostic::Checks do
stub_const("RUBY_VERSION", "1.8.6")
expect(checks.check_ruby_version)
.to match "Ruby version 1.8.6 is unsupported on 10.12"
.to match "Ruby version 1.8.6 is unsupported on macOS 10.12"
end
describe "#check_if_supported_sdk_available" do