diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-01-07 18:01:46 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-07 18:01:46 +0200 |
commit | 9345fcce3615091f080e271435035c196bdce9c6 (patch) | |
tree | 5ab927d8dce5b1008822ed78f76191ce2189a5f7 /yarns/080-import-mail.yarn | |
parent | b59e8825b26c21a0c610072d367293c2d3d64376 (diff) | |
download | distix-9345fcce3615091f080e271435035c196bdce9c6.tar.gz |
Fix tests to handle new "distix list" output formatting
Diffstat (limited to 'yarns/080-import-mail.yarn')
-rw-r--r-- | yarns/080-import-mail.yarn | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/yarns/080-import-mail.yarn b/yarns/080-import-mail.yarn index ada7182..5fff421 100644 --- a/yarns/080-import-mail.yarn +++ b/yarns/080-import-mail.yarn @@ -23,7 +23,7 @@ will read the e-mail from its standard input. 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 matches "^bar$" Import one email twice. It should result in the mail existing only once in the ticket. @@ -61,7 +61,7 @@ Next, import an mbox. 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 matches "^bar$" Next, import a Maildir. @@ -78,7 +78,7 @@ Next, import a Maildir. 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 matches "^bar$" When importing e-mails, distix needs to automatically recognise when they belong existing tickets: if the new mail refers to a mail in an @@ -102,8 +102,8 @@ headers. 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$" + AND output matches "^bar$" + AND output doesn't match "^blerf$" Ditto, but for mailboxes. @@ -123,8 +123,8 @@ Ditto, but for mailboxes. 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$" + AND output matches "^bar$" + AND output doesn't match "^blerf$" When users send new mails to tickets that are already closed, the "status" key needs to get updated. In other words, a ticket that has |