diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-07-27 22:55:49 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-07-27 22:55:49 +0300 |
commit | 96425d8fc5ac75786c107cad6fae8a0958830542 (patch) | |
tree | 83e9fd4ac63bc52c786ca06bcacb5bd48d27a12d /yarns | |
parent | 3c257b20aaea22412e6d782df7ccf0c143d38fed (diff) | |
download | distix-96425d8fc5ac75786c107cad6fae8a0958830542.tar.gz |
Implement importing mailboxes with mails for same ticket
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/080-import-mail.yarn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/yarns/080-import-mail.yarn b/yarns/080-import-mail.yarn index 31a8283..ece8843 100644 --- a/yarns/080-import-mail.yarn +++ b/yarns/080-import-mail.yarn @@ -66,3 +66,24 @@ headers. THEN attempt succeeded AND output matches "^[0-9a-f]{32} bar$" AND output doesn't match "^[0-9a-f]{32} blerf$" + +Ditto, but for mailboxes. + + SCENARIO import mailboxes with mails for the same ticket + + WHEN user attempts to run distix init REPO + THEN attempt succeeded + + GIVEN file MBOX1 containing "From foo@example.com Mon Mar 19 09:46:32 2012\nFrom: foo@example.com\nSubject: bar\nMessage-Id: one@example.com\n\nyo\n" + WHEN user attempts to run distix import-mbox REPO MBOX1 + THEN attempt succeeded + + GIVEN file MBOX2 containing "From foo@example.com Mon Mar 19 09:46:32 2012\nFrom: foo2@example.com\nSubject: blerf\nMessage-Id: <two@example.com>\nReferences: <one@example.com>\n\nyo\n" + WHEN user attempts to run distix import-mbox REPO MBOX2 + THEN attempt succeeded + + WHEN user changes working directory to REPO + AND user attempts to run distix list + THEN attempt succeeded + AND output matches "^[0-9a-f]{32} bar$" + AND output doesn't match "^[0-9a-f]{32} blerf$" |