Convert brew uninstall test to spec.
This commit is contained in:
parent
c7121f6be5
commit
7045b50f3a
12
Library/Homebrew/test/cmd/uninstall_spec.rb
Normal file
12
Library/Homebrew/test/cmd/uninstall_spec.rb
Normal file
@ -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
|
||||||
@ -60,10 +60,3 @@ class UninstallTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class IntegrationCommandTestUninstall < IntegrationCommandTestCase
|
|
||||||
def test_uninstall
|
|
||||||
cmd("install", testball)
|
|
||||||
assert_match "Uninstalling testball", cmd("uninstall", "--force", testball)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user