summaryrefslogtreecommitdiff
path: root/test/tests/link-environment-variable-expansion-source.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/link-environment-variable-expansion-source.bash')
-rw-r--r--test/tests/link-environment-variable-expansion-source.bash18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/tests/link-environment-variable-expansion-source.bash b/test/tests/link-environment-variable-expansion-source.bash
new file mode 100644
index 0000000..50456d6
--- /dev/null
+++ b/test/tests/link-environment-variable-expansion-source.bash
@@ -0,0 +1,18 @@
+test_description='link expands environment variables in source'
+. '../test-lib.bash'
+
+test_expect_success 'setup' '
+echo "grape" > ${DOTFILES}/h
+'
+
+test_expect_success 'run' '
+export APPLE="h" &&
+run_dotbot <<EOF
+- link:
+ ~/.i: \$APPLE
+EOF
+'
+
+test_expect_success 'test' '
+grep "grape" ~/.i
+'