aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2017-09-15 11:26:02 +0100
committerGitHub2017-09-15 11:26:02 +0100
commitc0063bb827ffa9cd537a0ca107aa05ca1323393c (patch)
tree115655b64f650feb715c6e884d72e5a0c4be4434 /Library/Homebrew/test
parent2e43d95498eedd3c61f7c013a0a419c2c0aac098 (diff)
parente12d2746b65d46f07e3ecc737d07926118dfb278 (diff)
downloadbrew-c0063bb827ffa9cd537a0ca107aa05ca1323393c.tar.bz2
Merge pull request #3156 from MikeMcQuaid/allow-developer-custom-ruby
os/mac/diagnostic: allow custom Ruby for devs.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/os/mac/diagnostic_spec.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/Library/Homebrew/test/os/mac/diagnostic_spec.rb b/Library/Homebrew/test/os/mac/diagnostic_spec.rb
index d6186e46b..83d95c2ef 100644
--- a/Library/Homebrew/test/os/mac/diagnostic_spec.rb
+++ b/Library/Homebrew/test/os/mac/diagnostic_spec.rb
@@ -47,15 +47,10 @@ describe Homebrew::Diagnostic::Checks do
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")
+ allow(MacOS).to receive(:version).and_return(OS::Mac::Version.new("10.12"))
+ stub_const("RUBY_VERSION", "1.8.6")
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
+ .to match "Ruby version 1.8.6 is unsupported on 10.12"
end
end