aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-25 07:02:22 +0100
committerGitHub2017-02-25 07:02:22 +0100
commit6a2693ba3d9423f37bcb8ee9bf01e9e3f6bf9203 (patch)
treecb7033c3ee25a8bc50444c2bf1ae98a231860f0a /Library/Homebrew/test/cmd
parent9010c37ab46eef28ce54b5a84eff7f0573705126 (diff)
parent7045b50f3a3cf067c5455e23c5b34e177cfd6f22 (diff)
downloadbrew-6a2693ba3d9423f37bcb8ee9bf01e9e3f6bf9203.tar.bz2
Merge pull request #2122 from reitermarkus/spec-uninstall
Convert `brew uninstall` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/uninstall_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cmd/uninstall_spec.rb b/Library/Homebrew/test/cmd/uninstall_spec.rb
new file mode 100644
index 000000000..65f69e802
--- /dev/null
+++ b/Library/Homebrew/test/cmd/uninstall_spec.rb
@@ -0,0 +1,12 @@
+describe "brew uninstall", :integration_test do
+ it "uninstalls a given Formula" do
+ shutup do
+ expect { brew "install", testball }.to be_a_success
+ end
+
+ expect { brew "uninstall", "--force", testball }
+ .to output(/Uninstalling testball/).to_stdout
+ .and not_to_output.to_stderr
+ .and be_a_success
+ end
+end