Fix frozen string bug

This commit is contained in:
Jacob Middag 2019-10-11 09:34:43 +02:00
parent a1a0569f75
commit c6cb20a768
No known key found for this signature in database
GPG Key ID: DD6CAD9FBBDB7D35
2 changed files with 7 additions and 1 deletions

View File

@ -466,7 +466,7 @@ class BuildFlagsError < RuntimeError
require_text = "requires"
end
message = <<~EOS
message = +<<~EOS
The following #{flag_text}:
#{flags.join(", ")}
#{require_text} building tools, but none are installed.

View File

@ -225,3 +225,9 @@ describe BottleFormulaUnavailableError do
its(:to_s) { is_expected.to match(/This bottle does not contain the formula file/) }
end
describe BuildFlagsError do
subject { described_class.new(["-s"]) }
its(:to_s) { is_expected.to match(/flag:\s+-s\nrequires building tools/) }
end