Add line break to string

This commit is contained in:
Martin Schimandl 2017-10-23 06:49:12 +02:00
parent 4e4405e6d7
commit fea5350d52
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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