summaryrefslogtreecommitdiff
path: root/test/tests/link-glob-ambiguous.bash
blob: 7e233483008a4067e3ee36123926d30778ea30a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
test_description='link glob ambiguous'
. '../test-lib.bash'

test_expect_success 'setup' '
mkdir ${DOTFILES}/foo
'

test_expect_failure 'run 1' '
run_dotbot <<EOF
- link:
    ~/foo/:
        path: foo
        glob: true
EOF
'

test_expect_failure 'test 1' '
test -d ~/foo
'

test_expect_failure 'run 2' '
run_dotbot <<EOF
- link:
    ~/foo/:
        path: foo/
        glob: true
EOF
'

test_expect_failure 'test 2' '
test -d ~/foo
'

test_expect_success 'run 3' '
run_dotbot <<EOF
- link:
    ~/foo:
        path: foo
        glob: true
EOF
'

test_expect_success 'test 3' '
test -d ~/foo
'