diff options
| author | Martin Schimandl | 2016-10-09 10:21:07 +0200 |
|---|---|---|
| committer | Martin Schimandl | 2016-10-14 19:25:44 +0200 |
| commit | a4e092a1c49bf7a81244a1f04ef1e115176754cc (patch) | |
| tree | 41b417a25caeaabefc55f4a088b11d54c1dc54d9 /Library/Homebrew/cask/test | |
| parent | f71e4a7e0e4647819d5d3ba6ee6c76c18d7c2f3c (diff) | |
| download | brew-a4e092a1c49bf7a81244a1f04ef1e115176754cc.tar.bz2 | |
add cask reinstall command
Diffstat (limited to 'Library/Homebrew/cask/test')
| -rw-r--r-- | Library/Homebrew/cask/test/cask/cli/reinstall_test.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb b/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb new file mode 100644 index 000000000..1798adda0 --- /dev/null +++ b/Library/Homebrew/cask/test/cask/cli/reinstall_test.rb @@ -0,0 +1,17 @@ +require "test_helper" + +describe Hbc::CLI::Reinstall do + it "allows reinstalling a Cask" do + Hbc::CLI::Install.run("local-transmission") + Hbc.load("local-transmission").must_be :installed? + Hbc::CLI::Reinstall.run("local-transmission") + Hbc.load("local-transmission").must_be :installed? + end + + it "allows reinstalling a non installed Cask" do + Hbc::CLI::Uninstall.run("local-transmission") + Hbc.load("local-transmission").wont_be :installed? + Hbc::CLI::Reinstall.run("local-transmission") + Hbc.load("local-transmission").must_be :installed? + end +end |
