1
0
Fork 0
mirror of synced 2024-06-29 12:11:09 -04:00
dotbot/test/tests/link-creates-when-nonexistent.bash

27 lines
431 B
Bash

test_description='link creates target and links file when target nonexistent'
. '../test-lib.bash'
test_expect_success 'setup' '
mkdir ~/dir &&
touch ~/file
'
test_expect_success 'run' '
run_dotbot <<EOF
- link:
~/dir:
path: dir
force: true
~/file:
path: file
force: true
EOF
'
test_expect_success 'test' '
test -L ~/dir &&
test -L ~/file &&
test -d ${DOTFILES}/dir &&
test -f ${DOTFILES}/file
'