aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Schimandl2016-10-19 20:35:44 +0200
committerMartin Schimandl2016-10-20 19:45:18 +0200
commit8f8606b8c84d47da5f3bf4e7128f5e271ac212b1 (patch)
tree50267e275b8d8c6b40e8681b0ace6c5087633c74 /Library
parenta4e092a1c49bf7a81244a1f04ef1e115176754cc (diff)
downloadbrew-8f8606b8c84d47da5f3bf4e7128f5e271ac212b1.tar.bz2
Fix code coverage issue by introducing shutup blocks
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/test/cask/cli/reinstall_test.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb b/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb
index 1798adda0..22f0d23fd 100644
--- a/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb
+++ b/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb
@@ -2,16 +2,26 @@ require "test_helper"
describe Hbc::CLI::Reinstall do
it "allows reinstalling a Cask" do
- Hbc::CLI::Install.run("local-transmission")
+ shutup do
+ Hbc::CLI::Install.run("local-transmission")
+ end
Hbc.load("local-transmission").must_be :installed?
- Hbc::CLI::Reinstall.run("local-transmission")
+
+ shutup do
+ Hbc::CLI::Reinstall.run("local-transmission")
+ end
Hbc.load("local-transmission").must_be :installed?
end
it "allows reinstalling a non installed Cask" do
- Hbc::CLI::Uninstall.run("local-transmission")
+ shutup do
+ Hbc::CLI::Uninstall.run("local-transmission")
+ end
Hbc.load("local-transmission").wont_be :installed?
- Hbc::CLI::Reinstall.run("local-transmission")
+
+ shutup do
+ Hbc::CLI::Reinstall.run("local-transmission")
+ end
Hbc.load("local-transmission").must_be :installed?
end
end