[PATCH 3/4] contrib: pick: test: stash message id

Mark Walters markwalters1009 at gmail.com
Tue Sep 3 07:04:59 PDT 2013


This is important to test as lots of subsequent tests will fail if this fails.
---
 contrib/notmuch-pick/test/emacs-pick |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/contrib/notmuch-pick/test/emacs-pick b/contrib/notmuch-pick/test/emacs-pick
index 91edcac..6834998 100755
--- a/contrib/notmuch-pick/test/emacs-pick
+++ b/contrib/notmuch-pick/test/emacs-pick
@@ -159,4 +159,12 @@ test_emacs '(notmuch-hello)
 cp OUTPUT /tmp/mjwout
 test_expect_equal_file OUTPUT $EXPECTED/notmuch-pick-show-window
 
+test_begin_subtest "Stash id"
+output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")
+		     (require (quote notmuch-pick))
+		     (notmuch-pick "id:1258498485-sup-142 at elly")
+		     (notmuch-test-wait)
+		     (notmuch-show-stash-message-id)')
+test_expect_equal "$output" "\"Stashed: id:1258498485-sup-142 at elly\""
+
 test_done
-- 
1.7.9.1



More information about the notmuch mailing list