summaryrefslogtreecommitdiff
path: root/test/rcrc.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/rcrc.t')
-rw-r--r--test/rcrc.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/rcrc.t b/test/rcrc.t
new file mode 100644
index 0000000..54fc022
--- /dev/null
+++ b/test/rcrc.t
@@ -0,0 +1,16 @@
+ $ . "$TESTDIR/helper.sh"
+
+Information should be read from ~/.rcrc by default
+
+ $ touch .example
+ > mkdir .other-dotfiles
+
+ $ echo 'DOTFILES_DIRS="$HOME/.other-dotfiles"' > $HOME/.rcrc
+
+ $ mkrc -v .example
+ Moving...
+ '.example' -> '*/.other-dotfiles/example' (glob)
+ Linking...
+ '*/.other-dotfiles/example' -> '*/.example' (glob)
+
+ $ assert_linked "$HOME/.example" "$HOME/.other-dotfiles/example"