Merge pull request #15149 from issyl0/more-noisy-on-unknown-cask-methods
This commit is contained in:
commit
8adaada399
@ -104,7 +104,7 @@ module Cask
|
||||
message << "during #{section} " if section
|
||||
message << "on Cask #{token}."
|
||||
|
||||
opoo "#{message}\n#{error_message_with_suggestions}"
|
||||
ofail "#{message}\n#{error_message_with_suggestions}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -20,10 +20,10 @@ describe Cask::DSL, :cask do
|
||||
end
|
||||
end
|
||||
|
||||
it "prints a warning that it has encountered an unexpected method" do
|
||||
it "prints an error that it has encountered an unexpected method" do
|
||||
expected = Regexp.compile(<<~EOS.lines.map(&:chomp).join)
|
||||
(?m)
|
||||
Warning:
|
||||
Error:
|
||||
.*
|
||||
Unexpected method 'future_feature' called on Cask unexpected-method-cask\\.
|
||||
.*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user