brew/Library/Homebrew/test/reinstall_test.rb
Mike McQuaid e347f7ade3 reinstall/upgrade/install: always output options.
This is both easier for debugging and to communicate with users what is
being done.
2016-12-10 13:07:03 +00:00

16 lines
409 B
Ruby

require "testing_env"
class IntegrationCommandTestReinstall < IntegrationCommandTestCase
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-foo",
cmd("reinstall", "testball")
assert foo_dir.exist?
end
end