diff options
| author | Markus Reiter | 2017-02-23 06:06:42 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-23 20:59:10 +0100 |
| commit | 7045b50f3a3cf067c5455e23c5b34e177cfd6f22 (patch) | |
| tree | cfb99a660ad444f8cc2427f496778e9e435359d5 /Library/Homebrew | |
| parent | c7121f6be50e44784e3e29114617c29715bd9c0f (diff) | |
| download | brew-7045b50f3a3cf067c5455e23c5b34e177cfd6f22.tar.bz2 | |
Convert `brew uninstall` test to spec.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/cmd/uninstall_spec.rb | 12 | ||||
| -rw-r--r-- | Library/Homebrew/test/uninstall_test.rb | 7 |
2 files changed, 12 insertions, 7 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 diff --git a/Library/Homebrew/test/uninstall_test.rb b/Library/Homebrew/test/uninstall_test.rb index 2f8bf4fff..a9230ffac 100644 --- a/Library/Homebrew/test/uninstall_test.rb +++ b/Library/Homebrew/test/uninstall_test.rb @@ -60,10 +60,3 @@ class UninstallTests < Homebrew::TestCase end end end - -class IntegrationCommandTestUninstall < IntegrationCommandTestCase - def test_uninstall - cmd("install", testball) - assert_match "Uninstalling testball", cmd("uninstall", "--force", testball) - end -end |
