summaryrefslogtreecommitdiff
path: root/test/tests/link-environment-user-expansion-target.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/link-environment-user-expansion-target.bash')
-rw-r--r--test/tests/link-environment-user-expansion-target.bash17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/tests/link-environment-user-expansion-target.bash b/test/tests/link-environment-user-expansion-target.bash
new file mode 100644
index 0000000..9cb3424
--- /dev/null
+++ b/test/tests/link-environment-user-expansion-target.bash
@@ -0,0 +1,17 @@
+test_description='link expands user in target'
+. '../test-lib.bash'
+
+test_expect_success 'setup' '
+echo "apple" > ~/f
+'
+
+test_expect_success 'run' '
+run_dotbot <<EOF
+- link:
+ ~/g: ~/f
+EOF
+'
+
+test_expect_success 'test' '
+grep "apple" ~/g
+'