summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-03-09 15:33:42 +0200
committerLars Wirzenius <liw@liw.fi>2016-03-09 16:09:10 +0200
commita2473f3ce59135196cf48d647b9c9f9837356c06 (patch)
tree836809da19b4addce23a5cf828bdb817313df4e5 /yarns
parent45e7efd99d3e553af42b3ae7e437f32fcd450457 (diff)
downloaddistix-a2473f3ce59135196cf48d647b9c9f9837356c06.tar.gz
Change "distix list" to include date in listing
Also, sort by date in the output. That's date of the newest message in the ticket.
Diffstat (limited to 'yarns')
-rw-r--r--yarns/040-new.yarn2
-rw-r--r--yarns/080-import-mail.yarn14
2 files changed, 8 insertions, 8 deletions
diff --git a/yarns/040-new.yarn b/yarns/040-new.yarn
index fc2bff8..ae70656 100644
--- a/yarns/040-new.yarn
+++ b/yarns/040-new.yarn
@@ -21,4 +21,4 @@ We create a new ticket, with a title that contains non-ASCII text.
WHEN user attempts to run distix list
THEN attempt succeeded
- AND output matches "^[0-9a-f]{32} new-ticket-title-gröt$"
+ AND output matches "^[0-9a-f]{32} .* new-ticket-title-gröt$"
diff --git a/yarns/080-import-mail.yarn b/yarns/080-import-mail.yarn
index d458deb..7d7a1b8 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 "^[0-9a-f]{32} .* 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 "^[0-9a-f]{32} .* 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 "^[0-9a-f]{32} .* 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 "^[0-9a-f]{32} .* bar$"
+ AND output doesn't match "^[0-9a-f]{32} .* blerf$"
Ditto, but for mailboxes.
@@ -123,5 +123,5 @@ 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 "^[0-9a-f]{32} .* bar$"
+ AND output doesn't match "^[0-9a-f]{32} .* blerf$"