Skip to content

Commit

Permalink
Add line break to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Jiro committed Nov 10, 2017
1 parent 4e4405e commit fea5350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ def initialize(*)

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
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/cask/cli/internal_stanza_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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
Expand Down

0 comments on commit fea5350

Please sign in to comment.