diff options
| author | Mike McQuaid | 2017-06-06 08:25:25 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-06 08:25:25 +0100 |
| commit | d9abe6552d7d450c2afbf49170d008f4888e18fd (patch) | |
| tree | fae03a68d89f2b333d669b2fc39c467692ae8140 /Library/Homebrew/test | |
| parent | 29d226825221b929cc248dca4178085867a2afc8 (diff) | |
| parent | 24d39430b50b8d9dfc4591bbf177c839f856bc6f (diff) | |
| download | brew-d9abe6552d7d450c2afbf49170d008f4888e18fd.tar.bz2 | |
Merge pull request #2738 from constXife/master
undefined local variable or method `ruby_version' on macOS 10.13 beta
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/os/mac/diagnostic_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/test/os/mac/diagnostic_spec.rb b/Library/Homebrew/test/os/mac/diagnostic_spec.rb index 787f80fec..d6186e46b 100644 --- a/Library/Homebrew/test/os/mac/diagnostic_spec.rb +++ b/Library/Homebrew/test/os/mac/diagnostic_spec.rb @@ -45,4 +45,17 @@ describe Homebrew::Diagnostic::Checks do expect(subject.check_homebrew_prefix) .to match("Your Homebrew's prefix is not /usr/local.") end + + specify "#check_ruby_version" do + allow(MacOS).to receive(:version).and_return(OS::Mac::Version.new("10.13")) + stub_const("RUBY_VERSION", "2.3.3p222") + + expect(subject.check_ruby_version) + .to match <<-EOS.undent + Ruby version 2.3.3p222 is unsupported on 10.13. Homebrew + is developed and tested on Ruby 2.0, and may not work correctly + on other Rubies. Patches are accepted as long as they don't cause breakage + on supported Rubies. + EOS + end end |
