From e398e4519d28e1eeef1b650e2c71cdb247789279 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 21 May 2015 20:43:38 -0400 Subject: Add test demonstrating installing a relative symlink --- Library/Homebrew/test/test_pathname.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3