1
0
Fork 0
mirror of synced 2024-11-10 10:58:57 -05:00
dotbot/test/tests/config-ordered.bash
2015-06-14 19:46:31 -04:00

26 lines
423 B
Bash

test_description='config loaded in order'
. '../test-lib.bash'
test_expect_success 'setup' '
mkdir ${DOTFILES}/a &&
mkdir ${DOTFILES}/b &&
mkdir ${DOTFILES}/c
echo "orange" > ${DOTFILES}/d
'
test_expect_success 'run' '
run_dotbot <<EOF
- link:
~/.a: a
~/.a/b: b
~/.a/b/c: c
~/.a/b/c/d: d
EOF
'
test_expect_success 'test' '
test -d ~/.a &&
test -d ~/.a/b &&
test -d ~/.a/b/c &&
grep "orange" ~/.a/b/c/d
'