1
0
Fork 0
mirror of synced 2024-12-22 14:11:07 -05:00
dotbot/test/tests/clean-missing.bash
2015-05-05 20:11:46 -04:00

19 lines
316 B
Bash

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
'