1
0
Fork 0
mirror of synced 2024-12-22 06:01:07 -05:00
dotbot/test/tests/link-force-leaves-when-nonexistent.bash
2016-11-17 14:12:22 -05:00

24 lines
359 B
Bash

test_description='force leaves file when target nonexistent'
. '../test-lib.bash'
test_expect_success 'setup' '
mkdir ~/dir &&
touch ~/file
'
test_expect_failure 'run' '
run_dotbot <<EOF
- link:
~/dir:
path: dir
force: true
~/file:
path: file
force: true
EOF
'
test_expect_success 'test' '
test -d ~/dir &&
test -f ~/file
'