diff options
author | Anish Athalye <me@anishathalye.com> | 2018-08-06 20:48:56 -0400 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2018-08-06 20:53:17 -0400 |
commit | 9332cde5ad5c7ab27483b63f61f1a8de6836743a (patch) | |
tree | 8148b583de5c3492398979d55067bee9a53c6e93 /test | |
parent | cf55ca51881f4364774fde03fb5446f027cb0d74 (diff) |
Add test for environment variable expansion
Diffstat (limited to 'test')
-rw-r--r-- | test/tests/clean-environment-variable-expansion.bash | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/tests/clean-environment-variable-expansion.bash b/test/tests/clean-environment-variable-expansion.bash new file mode 100644 index 0000000..fedab45 --- /dev/null +++ b/test/tests/clean-environment-variable-expansion.bash @@ -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 +' |