1
0
Fork 0
mirror of synced 2024-10-31 15:38:57 -04:00
dotbot/test/tests/link-leaves-file.bash

19 lines
278 B
Bash
Raw Permalink Normal View History

2015-05-05 19:58:25 -04:00
test_description='relink does not overwrite file'
. '../test-lib.bash'
test_expect_success 'setup' '
echo "apple" > ${DOTFILES}/f &&
echo "grape" > ~/.f
'
test_expect_failure 'run' '
run_dotbot <<EOF
- link:
~/.f: f
EOF
'
test_expect_success 'test' '
grep "grape" ~/.f
'