summaryrefslogtreecommitdiff
path: root/test/mkrc-alternate-dotfiles-dir.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkrc-alternate-dotfiles-dir.t')
-rw-r--r--test/mkrc-alternate-dotfiles-dir.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/mkrc-alternate-dotfiles-dir.t b/test/mkrc-alternate-dotfiles-dir.t
new file mode 100644
index 0000000..8346214
--- /dev/null
+++ b/test/mkrc-alternate-dotfiles-dir.t
@@ -0,0 +1,10 @@
+ $ . "$TESTDIR/helper.sh"
+ > mkdir .other-dotfiles
+
+Passing -d should specify alternate dotfiles location
+
+ $ touch .example
+
+ $ mkrc -d .other-dotfiles .example >/dev/null
+
+ $ assert_linked "$HOME/.example" "$HOME/.other-dotfiles/example"