summaryrefslogtreecommitdiff
path: root/test/rcup-spaces.t
diff options
context:
space:
mode:
authorGravatar Florian Tham <fgtham@gmail.com>2017-02-24 23:17:18 +0100
committerGravatar Mike Burns <mike@mike-burns.com>2017-03-10 10:58:07 -0500
commita01e08d6ee5f38338d7779c44cff82c4d069ef21 (patch)
tree715a2b55a04c691b99c12e7030d93003c1ddbe78 /test/rcup-spaces.t
parent6162eb3905c1e6482e9ab582776cd2882bb324a6 (diff)
rcup: handle directory names containing whitespace
This commit fixes #197.
Diffstat (limited to 'test/rcup-spaces.t')
-rw-r--r--test/rcup-spaces.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rcup-spaces.t b/test/rcup-spaces.t
new file mode 100644
index 0000000..00c50be
--- /dev/null
+++ b/test/rcup-spaces.t
@@ -0,0 +1,10 @@
+ $ . "$TESTDIR/helper.sh"
+
+Should create symlinks for files in directories with whitespace in their names
+
+ $ mkdir .dotfiles/sub\ dir
+ > touch .dotfiles/sub\ dir/example
+
+ $ rcup >/dev/null
+
+ $ assert_linked "$HOME/.sub dir/example" "$HOME/.dotfiles/sub dir/example"