diff options
| author | Jack Nagel | 2014-03-27 09:59:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-27 09:59:54 -0500 |
| commit | 40d0ae7f80676526b83f9cb885b0f1fdcf005bbe (patch) | |
| tree | a6972e8794e4024c704ce5c25d82151eee9bd68a /Library | |
| parent | f357cc6ebb0c9fc3210d5edc3eeb5724b717e149 (diff) | |
| download | homebrew-40d0ae7f80676526b83f9cb885b0f1fdcf005bbe.tar.bz2 | |
Assert that the broken symlink is actually overwritten
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_keg.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb index 6d1790ae1..a43249508 100644 --- a/Library/Homebrew/test/test_keg.rb +++ b/Library/Homebrew/test/test_keg.rb @@ -61,8 +61,11 @@ class LinkTests < Test::Unit::TestCase end def test_link_ignores_broken_symlinks_at_target - ln_s "/some/nonexistent/path", HOMEBREW_PREFIX/"bin/helloworld" + dst = HOMEBREW_PREFIX/"bin/helloworld" + src = @keg/"bin/helloworld" + ln_s "/some/nonexistent/path", dst shutup { @keg.link } + assert_equal src.relative_path_from(dst.dirname), dst.readlink end def test_link_overwrite |
