diff options
author | Carl Worth <cworth@cworth.org> | 2010-11-06 14:33:30 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-06 14:33:30 -0700 |
commit | f8007ecb290d9ce03e21ad75a7e5234404471abf (patch) | |
tree | 3b42b104c279f688cd65495595a672fad3bcded4 /test/emacs | |
parent | 81d3bd3670f570c9aeb7e1f3b317b86194ee4426 (diff) |
test: Add test for viewing raw message within emacs.
This provides further coverage for the recently added (and recently
modified) use of "notmuch show --format=raw" within emacs.
Diffstat (limited to 'test/emacs')
-rwxr-xr-x | test/emacs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -118,4 +118,10 @@ output=$(cat attachment) expected=$(cat $EXPECTED/attachment) test_expect_equal "$output" "$expected" +test_begin_subtest "View raw message within emacs" +expected=$(cat $EXPECTED/raw-message-cf0c4d-52ad0a) +first_line=$(echo "$expected" | head -n1) +output=$(test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-view-raw-message) (message (buffer-string))' 2>&1 | sed -ne "/$first_line/,\$ p") +test_expect_equal "$output" "$expected" + test_done |