aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorVlad Shablinsky2016-09-06 00:19:19 +0300
committerUladzislau Shablinski2016-09-07 20:58:14 +0300
commit846fa231564ce956203d5588784740e1ab0e8eb6 (patch)
treea99711bbf4cf3d05e22db184d534fe2ef987a863 /Library
parentf9b910eeb608bb8f2b7c9ed3beef86d5a5fe4da8 (diff)
downloadbrew-846fa231564ce956203d5588784740e1ab0e8eb6.tar.bz2
test_integration_cmds: reinstall pinned
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_integration_cmds.rb12
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"