summaryrefslogtreecommitdiff
path: root/test/tests/clean-outside.bash
blob: 9d9a055ab31d1fa26e96a35ef71f6fa8eb51dc27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
'