summaryrefslogtreecommitdiff
path: root/test/tests/clean-outside-force.bash
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/clean-outside-force.bash')
-rw-r--r--test/tests/clean-outside-force.bash18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/tests/clean-outside-force.bash b/test/tests/clean-outside-force.bash
new file mode 100644
index 0000000..16a740d
--- /dev/null
+++ b/test/tests/clean-outside-force.bash
@@ -0,0 +1,18 @@
+test_description='clean forced to remove files linking outside dotfiles directory'
+. '../test-lib.bash'
+
+test_expect_success 'setup' '
+ln -s /nowhere ~/.g
+'
+
+test_expect_success 'run' '
+run_dotbot <<EOF
+- clean:
+ ~/:
+ force: true
+EOF
+'
+
+test_expect_success 'test' '
+! test -h ~/.g
+'