test: test notmuch insert --folder=""

Test insert into top level folder.
This commit is contained in:
Jani Nikula 2017-11-02 21:08:57 +02:00 committed by David Bremner
parent 733ccfabca
commit cf08295c50

View file

@ -132,6 +132,13 @@ 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 top level folder"
gen_insert_msg
notmuch insert --folder="" < "$gen_msg_filename"
output=$(notmuch search --output=files id:${gen_msg_id})
dirname=$(dirname "$output")
test_expect_equal "$dirname" "$MAIL_DIR/new"
test_begin_subtest "Insert message into folder with trailing /"
gen_insert_msg
notmuch insert --folder=Drafts/ < "$gen_msg_filename"