aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_reinstall.rb
blob: d07a9605174660be27a85f5200f873a1b844aa2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require "helper/integration_command_test_case"

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 --with-foo",
      cmd("reinstall", "testball")
    assert foo_dir.exist?
  end
end