aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-05-21 20:43:38 -0400
committerJack Nagel2015-05-21 20:43:38 -0400
commite398e4519d28e1eeef1b650e2c71cdb247789279 (patch)
treeb2801974e65ca3b2d370df94d69feb1ba3adb392 /Library
parentad467f0386221943483770473a94b1d239601323 (diff)
downloadbrew-e398e4519d28e1eeef1b650e2c71cdb247789279.tar.bz2
Add test demonstrating installing a relative symlink
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_pathname.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb
index caf650b5f..e7f5fd896 100644
--- a/Library/Homebrew/test/test_pathname.rb
+++ b/Library/Homebrew/test/test_pathname.rb
@@ -218,4 +218,9 @@ class PathnameInstallTests < Homebrew::TestCase
assert_predicate @dst+"bin/b.txt", :exist?
assert_predicate (@dst+"bin").readlink, :relative?
end
+
+ def test_install_relative_symlink
+ @dst.install_symlink "foo" => "bar"
+ assert_equal Pathname.new("foo"), (@dst+"bar").readlink
+ end
end