Add line break to string
This commit is contained in:
parent
4e4405e6d7
commit
fea5350d52
@ -46,8 +46,10 @@ module Hbc
|
|||||||
|
|
||||||
return if DSL::DSL_METHODS.include?(stanza)
|
return if DSL::DSL_METHODS.include?(stanza)
|
||||||
raise ArgumentError,
|
raise ArgumentError,
|
||||||
"Unknown/unsupported stanza: '#{stanza}' Check cask reference"\
|
<<~EOS
|
||||||
" for supported stanzas."
|
Unknown/unsupported stanza: '#{stanza}'
|
||||||
|
Check cask reference for supported stanzas.
|
||||||
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
|
|||||||
@ -9,7 +9,7 @@ describe Hbc::CLI::InternalStanza, :cask do
|
|||||||
it "raises an exception when stanza is unknown/unsupported" do
|
it "raises an exception when stanza is unknown/unsupported" do
|
||||||
expect {
|
expect {
|
||||||
described_class.new("this_stanza_does_not_exist", "with-gpg")
|
described_class.new("this_stanza_does_not_exist", "with-gpg")
|
||||||
}.to raise_error(/Unknown\/unsupported stanza/)
|
}.to raise_error(%r{Unknown/unsupported stanza})
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises an exception when normal stanza is not present on cask" do
|
it "raises an exception when normal stanza is not present on cask" do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user