diff --git a/Library/Homebrew/test/test_pathname.rb b/Library/Homebrew/test/test_pathname.rb index caf650b5f7..e7f5fd8965 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