summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2016-08-02 10:15:27 -0700
committerAnish Athalye <me@anishathalye.com>2016-08-02 10:15:27 -0700
commita836261d02755e5cbdb28dcfd1ff0b89de27a0c3 (patch)
tree7ce20b15c5f1929f2736b14fabd457f1a7f9788d /test
parent0618bc70cc98c93cd2faa505585bdd093338f5be (diff)
Fix variable expansion in extended syntax
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
+'