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

22 lines
339 B
Bash
Raw Normal View History

2015-05-05 19:58:25 -04:00
test_description='force overwrites symlinked directory'
. '../test-lib.bash'
test_expect_success 'setup' '
mkdir ${DOTFILES}/dir ~/dir &&
touch ${DOTFILES}/dir/f &&
ln -s ~/ ~/.dir
'
test_expect_success 'run' '
run_dotbot <<EOF
- link:
~/.dir:
path: dir
force: true
EOF
'
test_expect_success 'test' '
test -f ~/.dir/f
'