diff options
| author | Jack Nagel | 2015-05-21 20:43:38 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-05-21 20:43:38 -0400 |
| commit | e398e4519d28e1eeef1b650e2c71cdb247789279 (patch) | |
| tree | b2801974e65ca3b2d370df94d69feb1ba3adb392 /Library | |
| parent | ad467f0386221943483770473a94b1d239601323 (diff) | |
| download | brew-e398e4519d28e1eeef1b650e2c71cdb247789279.tar.bz2 | |
Add test demonstrating installing a relative symlink
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_pathname.rb | 5 |
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 |
