diff options
| author | Vlad Shablinsky | 2016-09-06 00:19:19 +0300 |
|---|---|---|
| committer | Uladzislau Shablinski | 2016-09-07 20:58:14 +0300 |
| commit | 846fa231564ce956203d5588784740e1ab0e8eb6 (patch) | |
| tree | a99711bbf4cf3d05e22db184d534fe2ef987a863 /Library | |
| parent | f9b910eeb608bb8f2b7c9ed3beef86d5a5fe4da8 (diff) | |
| download | brew-846fa231564ce956203d5588784740e1ab0e8eb6.tar.bz2 | |
test_integration_cmds: reinstall pinned
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_integration_cmds.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index c83d7522a..9e6785b16 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -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" |
