diff options
Diffstat (limited to 'test/tests/link-environment-variable-unset.bash')
-rw-r--r-- | test/tests/link-environment-variable-unset.bash | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/tests/link-environment-variable-unset.bash b/test/tests/link-environment-variable-unset.bash new file mode 100644 index 0000000..8673729 --- /dev/null +++ b/test/tests/link-environment-variable-unset.bash @@ -0,0 +1,18 @@ +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 +' |