1
0
Fork 0
mirror of synced 2024-11-25 01:25:35 -05:00
dotbot/test/tests/clean-outside.bash

19 lines
301 B
Bash
Raw Normal View History

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