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

20 lines
316 B
Bash
Raw Permalink Normal View History

2015-05-05 19:58:25 -04:00
test_description='clean deletes links to missing files'
. '../test-lib.bash'
test_expect_success 'setup' '
touch ${DOTFILES}/f &&
ln -s ${DOTFILES}/f ~/.f &&
ln -s ${DOTFILES}/g ~/.g
'
test_expect_success 'run' '
run_dotbot <<EOF
- clean: ["~"]
EOF
'
test_expect_success 'test' '
test -f ~/.f &&
! test -h ~/.g
'