summaryrefslogtreecommitdiff
path: root/yarns/040-new.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/040-new.yarn')
-rw-r--r--yarns/040-new.yarn8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarns/040-new.yarn b/yarns/040-new.yarn
index ae70656..4ee5345 100644
--- a/yarns/040-new.yarn
+++ b/yarns/040-new.yarn
@@ -22,3 +22,11 @@ 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 first ticket id is captured as $TID
+ AND ticket id $TID 7-nybble prefix is $PREFIX
+
+Can we show a ticket using just a prefix of the ticket id?
+
+ WHEN user attempts to run distix show $PREFIX
+ THEN attempt succeeded
+ AND output contains ticket id $TID