test_integration_cmds: reinstall pinned

This commit is contained in:
Vlad Shablinsky 2016-09-06 00:19:19 +03:00 committed by Uladzislau Shablinski
parent f9b910eeb6
commit 846fa23156

View File

@ -531,6 +531,18 @@ class IntegrationCommandTests < Homebrew::TestCase
assert foo_dir.exist?
end
def test_reinstall_pinned
setup_test_formula "testball"
HOMEBREW_CELLAR.join("testball/0.1").mkpath
HOMEBREW_LIBRARY.join("PinnedKegs").mkpath
FileUtils.ln_s HOMEBREW_CELLAR.join("testball/0.1"), HOMEBREW_LIBRARY.join("PinnedKegs/testball")
assert_match "testball is pinned. You must unpin it to reinstall.", cmd("reinstall", "testball")
HOMEBREW_LIBRARY.join("PinnedKegs").rmtree
end
def test_home
setup_test_formula "testball"