diff options
| author | Alyssa Ross | 2016-10-26 15:07:06 +0100 |
|---|---|---|
| committer | Alyssa Ross | 2016-10-26 15:07:06 +0100 |
| commit | ec83d1decb7cf7166ccf0021f998503975a845f3 (patch) | |
| tree | aea0752954984237fb535e44e77f5023ce9ecc53 /Library | |
| parent | b71ce88fa1a1424cccbc43a5b602ecbb9875fe77 (diff) | |
| download | brew-ec83d1decb7cf7166ccf0021f998503975a845f3.tar.bz2 | |
uninstall: remove more integration tests
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_uninstall.rb | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/Library/Homebrew/test/test_uninstall.rb b/Library/Homebrew/test/test_uninstall.rb index f56f206d0..a7859b7ad 100644 --- a/Library/Homebrew/test/test_uninstall.rb +++ b/Library/Homebrew/test/test_uninstall.rb @@ -23,44 +23,8 @@ class UninstallTests < Homebrew::TestCase end class IntegrationCommandTestUninstall < IntegrationCommandTestCase - def setup - super - @f1_path = setup_test_formula "testball_f1", <<-CONTENT - def install - FileUtils.touch prefix/touch("hello") - end - CONTENT - @f2_path = setup_test_formula "testball_f2", <<-CONTENT - depends_on "testball_f1" - - def install - FileUtils.touch prefix/touch("hello") - end - CONTENT - end - - def f1 - Formulary.factory(@f1_path) - end - - def f2 - Formulary.factory(@f2_path) - end - def test_uninstall - cmd("install", "testball_f2") - run_as_not_developer do - assert_match "Refusing to uninstall", - cmd_fail("uninstall", "testball_f1") - refute_empty f1.installed_kegs - - assert_match "Uninstalling #{f2.rack}", - cmd("uninstall", "testball_f2") - assert_empty f2.installed_kegs - - assert_match "Uninstalling #{f1.rack}", - cmd("uninstall", "testball_f1") - assert_empty f1.installed_kegs - end + cmd("install", testball) + assert_match "Uninstalling testball", cmd("uninstall", "--force", testball) end end |
