aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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