mirror of
1
0
Fork 0

Added test to check ordered config

This commit is contained in:
Brian Knobbs 2015-06-14 19:46:31 -04:00
parent a3bc61c97d
commit 57dde3bf99
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
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
'