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