summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Graham Bennett <graham@simulcra.org>2015-11-27 11:54:35 +0100
committerGravatar Graham Bennet <mike@mike-burns.com>2015-11-27 11:56:57 +0100
commit7a94e88e57d4721b4ef32275d883a10e280eb277 (patch)
treebfd54a9a9261ef2f5c3bdeac2c64a23fc908e01f /test
parent52028b09025c5ebc41fc88bf3d7838416fbbbe54 (diff)
Symlink identical files if they are not yet linked
Edge case: a file is a copy of a dotfile but is not linked. In this case we should link it.
Diffstat (limited to 'test')
-rw-r--r--test/rcup-symlink-existing.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rcup-symlink-existing.t b/test/rcup-symlink-existing.t
new file mode 100644
index 0000000..d311b93
--- /dev/null
+++ b/test/rcup-symlink-existing.t
@@ -0,0 +1,10 @@
+ $ . "$TESTDIR/helper.sh"
+
+Symlinks files even if they are identical
+
+ $ mkdir -p .dotfiles
+ > echo find-me > "$HOME/.door"
+ > echo find-me > .dotfiles/door
+
+ $ rcup
+ > assert_linked "$HOME/.door" "$HOME/.dotfiles/door"