aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Schimandl2017-10-23 06:49:12 +0200
committerMartin Schimandl2017-11-10 20:16:38 +0100
commitfea5350d52de54eca9d6f30c67bd2fa008ca8328 (patch)
tree4cb30d8d3023403dcd7a580c0b4437c2d8a5efa9 /Library
parent4e4405e6d78c508929845be30f75bcf897e04d36 (diff)
downloadbrew-fea5350d52de54eca9d6f30c67bd2fa008ca8328.tar.bz2
Add line break to string
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb6
-rw-r--r--Library/Homebrew/test/cask/cli/internal_stanza_spec.rb2
2 files changed, 5 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
index a0cf17b64..27f195a4d 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
@@ -46,8 +46,10 @@ module Hbc
return if DSL::DSL_METHODS.include?(stanza)
raise ArgumentError,
- "Unknown/unsupported stanza: '#{stanza}' Check cask reference"\
- " for supported stanzas."
+ <<~EOS
+ Unknown/unsupported stanza: '#{stanza}'
+ Check cask reference for supported stanzas.
+ EOS
end
def run
diff --git a/Library/Homebrew/test/cask/cli/internal_stanza_spec.rb b/Library/Homebrew/test/cask/cli/internal_stanza_spec.rb
index a020b33d4..47b0fd8b3 100644
--- a/Library/Homebrew/test/cask/cli/internal_stanza_spec.rb
+++ b/Library/Homebrew/test/cask/cli/internal_stanza_spec.rb
@@ -9,7 +9,7 @@ describe Hbc::CLI::InternalStanza, :cask do
it "raises an exception when stanza is unknown/unsupported" do
expect {
described_class.new("this_stanza_does_not_exist", "with-gpg")
- }.to raise_error(/Unknown\/unsupported stanza/)
+ }.to raise_error(%r{Unknown/unsupported stanza})
end
it "raises an exception when normal stanza is not present on cask" do