Assert that the broken symlink is actually overwritten
This commit is contained in:
parent
e9ee640024
commit
3e9a88c365
@ -61,8 +61,11 @@ class LinkTests < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_link_ignores_broken_symlinks_at_target
|
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 }
|
shutup { @keg.link }
|
||||||
|
assert_equal src.relative_path_from(dst.dirname), dst.readlink
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_link_overwrite
|
def test_link_overwrite
|
||||||
|
Loading…
x
Reference in New Issue
Block a user