Add test for environment variable expansion
This commit is contained in:
parent
cf55ca5188
commit
9332cde5ad
1 changed files with 16 additions and 0 deletions
16
test/tests/clean-environment-variable-expansion.bash
Normal file
16
test/tests/clean-environment-variable-expansion.bash
Normal file
|
@ -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 a new issue