aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYuri Volchkov <yuri.volchkov@gmail.com>2017-08-12 18:47:30 +0200
committerDavid Bremner <david@tethera.net>2017-08-20 08:28:55 -0300
commitcd8551d53a69c43aed5276abc1e492d3d6553979 (patch)
treed40c35c9c4461b7471cf5e28782dbc50468c4c85 /test
parentdea75b5dd641219047382ef7de48905f4a506039 (diff)
test: insert into the folder with trailing /
From database's point of view, "Drafts" and "Drafts/" are different folders Signed-off-by: Yuri Volchkov <yuri.volchkov@gmail.com> Amended: add test_subtest_known_broken (db)
Diffstat (limited to 'test')
-rwxr-xr-xtest/T070-insert.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/T070-insert.sh b/test/T070-insert.sh
index 48f212ee..187dfd37 100755
--- a/test/T070-insert.sh
+++ b/test/T070-insert.sh
@@ -132,6 +132,14 @@ output=$(notmuch search --output=files path:Drafts/new)
dirname=$(dirname "$output")
test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"
+test_begin_subtest "Insert message into folder with trailing /"
+test_subtest_known_broken
+gen_insert_msg
+notmuch insert --folder=Drafts/ < "$gen_msg_filename"
+output=$(notmuch search --output=files id:${gen_msg_id})
+dirname=$(dirname "$output")
+test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new"
+
test_begin_subtest "Insert message into folder, add/remove tags"
gen_insert_msg
notmuch insert --folder=Drafts +draft -unread < "$gen_msg_filename"