diagnostic_spec: tweak_formatting.
This commit is contained in:
parent
4f5643a676
commit
24d39430b5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user