Add test demonstrating installing a relative symlink

This commit is contained in:
Jack Nagel 2015-05-21 20:43:38 -04:00
parent ad467f0386
commit e398e4519d

View File

@ -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