Add test for environment variable expansion
This commit is contained in:
parent
cf55ca5188
commit
9332cde5ad
|
@ -0,0 +1,16 @@
|
|||
test_description='clean expands environment variables'
|
||||
. '../test-lib.bash'
|
||||
|
||||
test_expect_success 'setup' '
|
||||
ln -s ${DOTFILES}/f ~/.f
|
||||
'
|
||||
|
||||
test_expect_success 'run' '
|
||||
run_dotbot <<EOF
|
||||
- clean: ["\$HOME"]
|
||||
EOF
|
||||
'
|
||||
|
||||
test_expect_success 'test' '
|
||||
! test -h ~/.f
|
||||
'
|
Loading…
Reference in New Issue