summaryrefslogtreecommitdiff
path: root/test/tests/link-glob-ambiguous.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/link-glob-ambiguous.bash')
-rw-r--r--test/tests/link-glob-ambiguous.bash45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/tests/link-glob-ambiguous.bash b/test/tests/link-glob-ambiguous.bash
new file mode 100644
index 0000000..97d42cd
--- /dev/null
+++ b/test/tests/link-glob-ambiguous.bash
@@ -0,0 +1,45 @@
+test_description='link glob ambiguous'
+. '../test-lib.bash'
+
+test_expect_success 'setup' '
+mkdir ${DOTFILES}/bin
+'
+
+test_expect_failure 'run 1' '
+run_dotbot <<EOF
+- link:
+ ~/bin/:
+ path: bin
+ glob: true
+EOF
+'
+
+test_expect_failure 'test 1' '
+test -d ~/bin
+'
+
+test_expect_failure 'run 2' '
+run_dotbot <<EOF
+- link:
+ ~/bin/:
+ path: bin/
+ glob: true
+EOF
+'
+
+test_expect_failure 'test 2' '
+test -d ~/bin
+'
+
+test_expect_success 'run 3' '
+run_dotbot <<EOF
+- link:
+ ~/bin:
+ path: bin
+ glob: true
+EOF
+'
+
+test_expect_success 'test 3' '
+test -d ~/bin
+'