diff options
| author | Mike McQuaid | 2017-06-06 08:03:06 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-06 08:03:06 +0100 |
| commit | 24d39430b50b8d9dfc4591bbf177c839f856bc6f (patch) | |
| tree | a3d0a3ec4f17312a5345ad1eb5d87a386b7428b2 /Library/Homebrew | |
| parent | 4f5643a67681f399dbabaeefb758a9c871ba513f (diff) | |
| download | brew-24d39430b50b8d9dfc4591bbf177c839f856bc6f.tar.bz2 | |
diagnostic_spec: tweak_formatting.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/os/mac/diagnostic_spec.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Homebrew/test/os/mac/diagnostic_spec.rb b/Library/Homebrew/test/os/mac/diagnostic_spec.rb index 19682e0c7..d6186e46b 100644 --- a/Library/Homebrew/test/os/mac/diagnostic_spec.rb +++ b/Library/Homebrew/test/os/mac/diagnostic_spec.rb @@ -47,16 +47,15 @@ describe Homebrew::Diagnostic::Checks do end specify "#check_ruby_version" do - expected_string = <<-EXPECTED -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. - EXPECTED 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(expected_string) + .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 |
