aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/test/cask/installer_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/test/cask/installer_spec.rb b/Library/Homebrew/test/cask/installer_spec.rb
index 8ef82c1d5..b5a445aec 100644
--- a/Library/Homebrew/test/cask/installer_spec.rb
+++ b/Library/Homebrew/test/cask/installer_spec.rb
@@ -101,7 +101,9 @@ describe Hbc::Installer, :cask do
it "fails to install if sha256 :no_check is used with --require-sha" do
no_checksum = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/no-checksum.rb")
expect {
- Hbc::Installer.new(no_checksum, require_sha: true).install
+ shutup do
+ Hbc::Installer.new(no_checksum, require_sha: true).install
+ end
}.to raise_error(Hbc::CaskNoShasumError)
end