aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-17 23:07:16 -0800
committerAdam Vandenberg2012-02-17 23:07:16 -0800
commit4e9c4e3872bb0f4ff4b55af6ffc6e84fc2d9146b (patch)
tree1c48a86d5070b9367b076e867062233f53c907d1 /Library/Homebrew/test
parent8f3d373c83cd82fa13b3b8f773859dea0206b961 (diff)
downloadhomebrew-4e9c4e3872bb0f4ff4b55af6ffc6e84fc2d9146b.tar.bz2
Update return values of install and install_symlink
These now return an Array of all the target destinations. Previously, if a single argument was passed a single non- Array was returned. This behavior has been changed so that an Array is always returned even for a single argument. Updated the test. Hopefully this won't break any custom code out there.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_bucket.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_bucket.rb b/Library/Homebrew/test/test_bucket.rb
index fda9f356f..0c14f39c0 100644
--- a/Library/Homebrew/test/test_bucket.rb
+++ b/Library/Homebrew/test/test_bucket.rb
@@ -149,7 +149,8 @@ class BeerTasting < Test::Unit::TestCase
abcd=orig_abcd=HOMEBREW_CACHE+'abcd'
FileUtils.cp ABS__FILE__, abcd
- abcd=HOMEBREW_PREFIX.install abcd
+ installed_paths=HOMEBREW_PREFIX.install abcd
+ abcd = installed_paths[0]
assert (HOMEBREW_PREFIX+orig_abcd.basename).exist?
assert abcd.exist?
assert_equal HOMEBREW_PREFIX+'abcd', abcd