1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
test_description='relink does not overwrite file' . '../test-lib.bash' test_expect_success 'setup' ' echo "apple" > ${DOTFILES}/f && echo "grape" > ~/.f ' test_expect_failure 'run' ' run_dotbot <<EOF - link: ~/.f: f EOF ' test_expect_success 'test' ' grep "grape" ~/.f '