1
0
Fork 0
mirror of synced 2024-11-22 16:25:34 -05:00
dotbot/test/tests/link-relink-overwrite-symlink.bash

22 lines
321 B
Bash
Raw Normal View History

2015-05-05 19:58:25 -04:00
test_description='relink overwrites symlink'
. '../test-lib.bash'
test_expect_success 'setup' '
echo "apple" > ${DOTFILES}/f &&
echo "grape" > ~/f &&
ln -s ~/f ~/.f
'
test_expect_success 'run' '
run_dotbot <<EOF
- link:
~/.f:
path: f
relink: true
EOF
'
test_expect_success 'test' '
grep "apple" ~/.f
'