1
0
Fork 0
mirror of synced 2024-11-23 00:35:34 -05:00
dotbot/test/tests/link-force-leaves-when-nonexistent.bash

25 lines
359 B
Bash
Raw Normal View History

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
'