summaryrefslogtreecommitdiff
path: root/test/mkrc-copy-file.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/mkrc-copy-file.t')
-rw-r--r--test/mkrc-copy-file.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/mkrc-copy-file.t b/test/mkrc-copy-file.t
new file mode 100644
index 0000000..45e63d3
--- /dev/null
+++ b/test/mkrc-copy-file.t
@@ -0,0 +1,15 @@
+ $ . "$TESTDIR/helper.sh"
+
+Passing -C should copy the file
+
+ $ echo 'Content' > .example
+
+ $ mkrc -C .example >/dev/null
+
+ $ refute "should not be a symlink" -h $HOME/.example
+
+ $ cat $HOME/.example
+ Content
+
+ $ cat $HOME/.dotfiles/example
+ Content