summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2018-11-19 20:38:29 -0500
committerAnish Athalye <me@anishathalye.com>2018-11-19 20:38:29 -0500
commit1be9f7532b535675f1e79f4eb96adf45a0de811b (patch)
tree7f3dfc9385a49162fdd97ba03f48d7eac7824001 /test
parent7add8662157438b9a18b1eead0357b7857049085 (diff)
Add test
Diffstat (limited to 'test')
-rw-r--r--test/tests/link-if.bash19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/tests/link-if.bash b/test/tests/link-if.bash
index 9fe6429..1ea7709 100644
--- a/test/tests/link-if.bash
+++ b/test/tests/link-if.bash
@@ -30,3 +30,22 @@ grep "apple" ~/.f &&
grep "apple" ~/.h &&
! test -f ~/.i
'
+
+test_expect_success 'run 2' '
+run_dotbot <<EOF
+- defaults:
+ link:
+ if: "false"
+- link:
+ ~/.j:
+ path: f
+ if: "true"
+ ~/.k:
+ path: f
+EOF
+'
+
+test_expect_success 'test 2' '
+grep "apple" ~/.j &&
+! test -f ~/.k
+'