summaryrefslogtreecommitdiff
path: root/test/tests/link-relink-leaves-file.bash
blob: 74c6d290508d8dc0e1f948787e54b1d9e14b62f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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:
      path: f
      relink: true
EOF
'

test_expect_success 'test' '
grep "grape" ~/.f
'