1
0
Fork 0
mirror of synced 2024-11-25 17:45:34 -05:00
dotbot/test/tests/link-environment-variable-unset.bash

19 lines
294 B
Bash
Raw Normal View History

test_description='link leaves unset environment variables'
. '../test-lib.bash'
test_expect_success 'setup' '
echo "apple" > ${DOTFILES}/\$ORANGE
'
test_expect_success 'run' '
unset ORANGE &&
run_dotbot <<EOF
- link:
~/.f: \$ORANGE
EOF
'
test_expect_success 'test' '
grep "apple" ~/.f
'