2016-09-27 00:03:40 +02:00
|
|
|
require "helper/integration_command_test_case"
|
2016-09-26 19:55:50 +02:00
|
|
|
|
2016-09-27 00:03:40 +02:00
|
|
|
class IntegrationCommandTestReinstall < IntegrationCommandTestCase
|
2016-09-26 19:55:50 +02:00
|
|
|
def test_reinstall
|
|
|
|
setup_test_formula "testball"
|
|
|
|
|
|
|
|
cmd("install", "testball", "--with-foo")
|
|
|
|
foo_dir = HOMEBREW_CELLAR/"testball/0.1/foo"
|
|
|
|
assert foo_dir.exist?
|
|
|
|
foo_dir.rmtree
|
|
|
|
assert_match "Reinstalling testball with --with-foo",
|
|
|
|
cmd("reinstall", "testball")
|
|
|
|
assert foo_dir.exist?
|
|
|
|
end
|
|
|
|
end
|