diff options
| author | Martin Schimandl | 2016-10-19 20:35:44 +0200 |
|---|---|---|
| committer | Martin Schimandl | 2016-10-20 19:45:18 +0200 |
| commit | 8f8606b8c84d47da5f3bf4e7128f5e271ac212b1 (patch) | |
| tree | 50267e275b8d8c6b40e8681b0ace6c5087633c74 /Library | |
| parent | a4e092a1c49bf7a81244a1f04ef1e115176754cc (diff) | |
| download | brew-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.rb | 18 |
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 |
