1
0
Fork 0
mirror of synced 2024-11-22 16:25:34 -05:00
dotbot/test/tests/only-defaults.bash

22 lines
353 B
Bash
Raw Normal View History

test_description='--only does not skip defaults'
. '../test-lib.bash'
test_expect_success 'setup' '
echo "apple" > ${DOTFILES}/x
'
test_expect_success 'run' '
run_dotbot --only link <<EOF
- defaults:
link:
create: true
- shell:
- echo "pear" > ~/z
- link:
~/d/x: x
'
test_expect_success 'test' '
grep "apple" ~/d/x && ! test -f ~/z
'